Rename 'id' to 'state' in menu item view.

Props koopersmith
fixes #22594


git-svn-id: https://develop.svn.wordpress.org/trunk@22851 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-11-26 22:49:45 +00:00
parent 283e33bd58
commit 9e26663d18

View File

@ -2339,14 +2339,14 @@
tagName: 'ul',
className: 'media-menu',
toView: function( options, id ) {
toView: function( options, state ) {
options = options || {};
options.id = options.id || id;
options.state = options.state || state;
return new media.view.MenuItem( options ).render();
},
select: function( id ) {
var view = this.get( id );
select: function( state ) {
var view = this.get( state );
if ( ! view )
return;
@ -2373,8 +2373,8 @@
if ( options.click )
options.click.call( this );
else if ( options.id )
this.controller.state( options.id );
else if ( options.state )
this.controller.state( options.state );
},
render: function() {