Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow data to be provided when trigger is invoked #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mnelson
Copy link

@mnelson mnelson commented Sep 18, 2014

No description provided.

@@ -207,7 +207,7 @@ cash.on = function(type, fn, sel, data, cap) {
// pass the namespace along to the listener
if(ns) e.namespace = ns;
// pass any custom data along to the listener
if(data) e.data = data;
e.data = $.extend({}, data || {}, e.data);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't there a case here where we don't call extend? Also this would possibly leave us with a e.data = {} -- not sure if we care there or not, but previously e.data would only be present if it had stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants