From 41201292aade04f4b94fc97ef44102be4608d105 Mon Sep 17 00:00:00 2001 From: Sam Saccone Date: Fri, 11 Jul 2014 15:24:47 -0400 Subject: [PATCH] simply logic to wrap views --- src/marionette.behaviors.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/marionette.behaviors.js b/src/marionette.behaviors.js index 466a3e6d00..07d73b5abf 100644 --- a/src/marionette.behaviors.js +++ b/src/marionette.behaviors.js @@ -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 = {