You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
How exactly would one use attr({bind:...}) here? "Bind" needs to be passed, at minimum, two arguments -- this only works for one. Might be worth allowing multiple arguments to be passed via an array:
$(elem).attr({
bind: ['click', function(){}]
});
Although, tbh, I doubt that "bind" would be very useful in this context.
ecdcda8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How exactly would one use attr({bind:...}) here? "Bind" needs to be passed, at minimum, two arguments -- this only works for one. Might be worth allowing multiple arguments to be passed via an array:
$(elem).attr({
bind: ['click', function(){}]
});
Although, tbh, I doubt that "bind" would be very useful in this context.
ecdcda8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, .bind() now accepts an object. So you can do:
Naturally the case of a regular bind won't work here, it's strictly for the object case.
ecdcda8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, cool, I didn't see that change...