Customize: Update parameter name in api.Class.extend()
.
This makes the name consistent with the documentation and the `inherits()` function signature. Props ribaricplusplus, davidbaumwald. Fixes #51652. git-svn-id: https://develop.svn.wordpress.org/trunk@49353 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2cbaf20dcd
commit
7e4debe75c
@ -112,8 +112,8 @@ window.wp = window.wp || {};
|
|||||||
* @param object staticProps Properties to apply directly to the class.
|
* @param object staticProps Properties to apply directly to the class.
|
||||||
* @return child The subclass.
|
* @return child The subclass.
|
||||||
*/
|
*/
|
||||||
api.Class.extend = function( protoProps, classProps ) {
|
api.Class.extend = function( protoProps, staticProps ) {
|
||||||
var child = inherits( this, protoProps, classProps );
|
var child = inherits( this, protoProps, staticProps );
|
||||||
child.extend = this.extend;
|
child.extend = this.extend;
|
||||||
return child;
|
return child;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user