From fe1482e0c41a28fdf478fe7c5c34f8cc788ad893 Mon Sep 17 00:00:00 2001 From: Inez Korczynski Date: Wed, 23 May 2012 13:34:52 -0700 Subject: [PATCH] Added method proxy to ve.ce.Surface Change-Id: I2373df4c738b49685a897c8e13acebdd7ccb3e00 --- modules/ve2/ce/ve.ce.Surface.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/ve2/ce/ve.ce.Surface.js b/modules/ve2/ce/ve.ce.Surface.js index c3c049fc0d..82ccec878b 100644 --- a/modules/ve2/ce/ve.ce.Surface.js +++ b/modules/ve2/ce/ve.ce.Surface.js @@ -27,6 +27,12 @@ ve.ce.Surface = function( $container, model ) { /* Methods */ +ve.ce.Surface.prototype.proxy = function( func ) { + var _this = this; + return( function() { + return func.apply( _this, arguments ); + }); +}; /** * @method