mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
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:
parent
e4c8ceca1e
commit
a6bba833d4
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user