equal
deleted
inserted
replaced
338 // The base view class. |
338 // The base view class. |
339 wp.Backbone.View = Backbone.View.extend({ |
339 wp.Backbone.View = Backbone.View.extend({ |
340 // The constructor for the `Views` manager. |
340 // The constructor for the `Views` manager. |
341 Subviews: wp.Backbone.Subviews, |
341 Subviews: wp.Backbone.Subviews, |
342 |
342 |
343 constructor: function() { |
343 constructor: function( options ) { |
344 this.views = new this.Subviews( this, this.views ); |
344 this.views = new this.Subviews( this, this.views ); |
345 this.on( 'ready', this.ready, this ); |
345 this.on( 'ready', this.ready, this ); |
|
346 |
|
347 this.options = options || {}; |
346 |
348 |
347 Backbone.View.apply( this, arguments ); |
349 Backbone.View.apply( this, arguments ); |
348 }, |
350 }, |
349 |
351 |
350 remove: function() { |
352 remove: function() { |