Skip to content

Commit

Permalink
simply logic to wrap views
Browse files Browse the repository at this point in the history
  • Loading branch information
samccone committed Jul 12, 2014
1 parent 29d567b commit 4120129
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/marionette.behaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ Marionette.Behaviors = (function(Marionette, _) {
// Wraps several of the view's methods
// calling the methods first on each behavior
// and then eventually calling the method on the view.
Behaviors.wrap(view, behaviors, [
'bindUIElements', 'unbindUIElements',
'delegateEvents', 'undelegateEvents',
'behaviorEvents', 'triggerMethod',
'setElement', 'destroy'
]);
Behaviors.wrap(view, behaviors, _.keys(methods));
}

var methods = {
Expand Down

0 comments on commit 4120129

Please sign in to comment.