mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-03 18:18:02 +02: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',
|
tagName: 'ul',
|
||||||
className: 'media-menu',
|
className: 'media-menu',
|
||||||
|
|
||||||
toView: function( options, id ) {
|
toView: function( options, state ) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
options.id = options.id || id;
|
options.state = options.state || state;
|
||||||
return new media.view.MenuItem( options ).render();
|
return new media.view.MenuItem( options ).render();
|
||||||
},
|
},
|
||||||
|
|
||||||
select: function( id ) {
|
select: function( state ) {
|
||||||
var view = this.get( id );
|
var view = this.get( state );
|
||||||
|
|
||||||
if ( ! view )
|
if ( ! view )
|
||||||
return;
|
return;
|
||||||
@ -2373,8 +2373,8 @@
|
|||||||
|
|
||||||
if ( options.click )
|
if ( options.click )
|
||||||
options.click.call( this );
|
options.click.call( this );
|
||||||
else if ( options.id )
|
else if ( options.state )
|
||||||
this.controller.state( options.id );
|
this.controller.state( options.state );
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user