mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
283e33bd58
commit
9e26663d18
@ -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