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

Props koopersmith
fixes #22594


git-svn-id: http://core.svn.wordpress.org/trunk@22851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ryan Boren 2012-11-26 22:49:45 +00:00
parent e4c8ceca1e
commit a6bba833d4

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() {