//
// Returns an array of all subviews.
all: function() {
- return _.flatten( this._views );
+ return _.flatten( _.values( this._views ) );
},
// ### Get a selector's subviews
// The constructor for the `Views` manager.
Subviews: wp.Backbone.Subviews,
- constructor: function() {
+ constructor: function( options ) {
this.views = new this.Subviews( this, this.views );
this.on( 'ready', this.ready, this );
+ this.options = options || {};
+
Backbone.View.apply( this, arguments );
},