marionette-rails 0.9.9 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
|
-
// Backbone.Marionette v0.9.
|
1
|
+
// Backbone.Marionette v0.9.10
|
2
2
|
//
|
3
3
|
// Copyright (C)2012 Derick Bailey, Muted Solutions, LLC
|
4
4
|
// Distributed Under MIT License
|
@@ -223,15 +223,9 @@ Marionette.View = Backbone.View.extend({
|
|
223
223
|
Marionette.ItemView = Marionette.View.extend({
|
224
224
|
constructor: function(){
|
225
225
|
Marionette.View.prototype.constructor.apply(this, arguments);
|
226
|
-
this.initialEvents();
|
227
|
-
},
|
228
226
|
|
229
|
-
|
230
|
-
|
231
|
-
// events, or to add your own initial events.
|
232
|
-
initialEvents: function(){
|
233
|
-
if (this.collection){
|
234
|
-
this.bindTo(this.collection, "reset", this.render, this);
|
227
|
+
if (this.initialEvents){
|
228
|
+
this.initialEvents();
|
235
229
|
}
|
236
230
|
},
|
237
231
|
|