mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Remove oo from ve.js closure
Instead use OO directly. Also remove ve.createObject, which is unused now that ve.Registry and ve.Factory have been moved to oojs. Change-Id: I3470b6660107ddd0bdf4a43c50d191a1bb1cc4d8
This commit is contained in:
parent
26a1d8986b
commit
fae7f130e4
|
@ -5,7 +5,7 @@
|
|||
* @license The MIT License (MIT); see LICENSE.txt
|
||||
*/
|
||||
|
||||
( function ( oo ) {
|
||||
( function () {
|
||||
var ve, hasOwn;
|
||||
|
||||
/**
|
||||
|
@ -24,15 +24,6 @@
|
|||
|
||||
/* Static Methods */
|
||||
|
||||
/**
|
||||
* Create an object that inherits from another object.
|
||||
*
|
||||
* @method
|
||||
* @until ES5: Object#create
|
||||
* @inheritdoc Object#create
|
||||
*/
|
||||
ve.createObject = Object.create;
|
||||
|
||||
/**
|
||||
* Checks if an object is an instance of one or more classes.
|
||||
*
|
||||
|
@ -56,13 +47,13 @@
|
|||
* @method
|
||||
* @inheritdoc OO#cloneObject
|
||||
*/
|
||||
ve.cloneObject = oo.cloneObject;
|
||||
ve.cloneObject = OO.cloneObject;
|
||||
|
||||
/**
|
||||
* @method
|
||||
* @inheritdoc OO#cloneObject
|
||||
*/
|
||||
ve.getObjectValues = oo.getObjectValues;
|
||||
ve.getObjectValues = OO.getObjectValues;
|
||||
|
||||
/**
|
||||
* @method
|
||||
|
@ -75,13 +66,13 @@
|
|||
* @method
|
||||
* @inheritdoc OO#compare
|
||||
*/
|
||||
ve.compare = oo.compare;
|
||||
ve.compare = OO.compare;
|
||||
|
||||
/**
|
||||
* @method
|
||||
* @inheritdoc OO#copy
|
||||
*/
|
||||
ve.copy = oo.copy;
|
||||
ve.copy = OO.copy;
|
||||
|
||||
/**
|
||||
* Copy an array of DOM elements, optionally into a different document.
|
||||
|
@ -945,4 +936,4 @@
|
|||
|
||||
// Expose
|
||||
window.ve = ve;
|
||||
}( OO ) );
|
||||
}() );
|
||||
|
|
Loading…
Reference in a new issue