wp/wp-includes/js/wp-backbone.js
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
   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() {