Skip to content

Commit

Permalink
Use bind instead of partial in TriggerHandlersForBehaviours
Browse files Browse the repository at this point in the history
  • Loading branch information
megawac authored and samccone committed Jan 14, 2015
1 parent d242196 commit 122f208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/behaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Marionette.Behaviors = (function(Marionette, _) {

triggersHash = Marionette.normalizeUIKeys(triggersHash, ui);

_.each(triggersHash, _.partial(this._setHandlerForBehavior, behavior, i), this);
_.each(triggersHash, _.bind(this._setHandlerForBehavior, this, behavior, i));
},

// Internal method to create and assign the trigger handler for a given
Expand Down

0 comments on commit 122f208

Please sign in to comment.