mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Added method proxy to ve.ce.Surface
Change-Id: I2373df4c738b49685a897c8e13acebdd7ccb3e00
This commit is contained in:
parent
bea881daca
commit
fe1482e0c4
|
@ -27,6 +27,12 @@ ve.ce.Surface = function( $container, model ) {
|
||||||
|
|
||||||
/* Methods */
|
/* Methods */
|
||||||
|
|
||||||
|
ve.ce.Surface.prototype.proxy = function( func ) {
|
||||||
|
var _this = this;
|
||||||
|
return( function() {
|
||||||
|
return func.apply( _this, arguments );
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @method
|
* @method
|
||||||
|
|
Loading…
Reference in a new issue