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

Update to work with marionette 1.0.0rc3 #8

Closed
wants to merge 8 commits into from
Prev Previous commit
Next Next commit
Using Marionette.addEventBinder to maintain scope in the listenTo met…
…hods
  • Loading branch information
vitch committed Jan 24, 2013
commit ce84e18de4b005db4e86821bdcf3bd9241fd8bd5
4 changes: 2 additions & 2 deletions backbone.geppetto.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ define( [

this.vent = {};

_.extend(this.vent, Backbone.Events);
Marionette.addEventBinder(this.vent);

this.initialize && this.initialize();

Expand Down Expand Up @@ -114,7 +114,7 @@ define( [
}
}

this.vent.listenTo( this.vent, eventName, callback );
this.vent.listenTo( this.vent, eventName, callback, target );
// The arguments to listenTo are enough to stop listening to an event so we'll store those as the binding
var binding = [this.vent, eventName, callback];

Expand Down