public/ckeditor/4.4dev/core/tools.js
function( originalFunction, functionBuilder ) {
			var newFn = functionBuilder( originalFunction );
			newFn.prototype = originalFunction.prototype;
			return newFn;
		}
function( originalFunction, functionBuilder ) {
			var newFn = functionBuilder( originalFunction );
			newFn.prototype = originalFunction.prototype;
			return newFn;
		}
function ( originalFunction , functionBuilder ) { var newFn = functionBuilder ( originalFunction ) ; newFn . prototype = originalFunction . prototype ; return newFn ; }
Creates a function override.

var obj = {
myFunction: function( name ) {
alert( 'Name: ' + name );
}
};

obj.myFunction = CKEDITOR.tools.override( obj.myFunction, function( myFunctionOriginal ) {
return function( name ) {
alert( 'Overriden name: ' + name );
myFunctionOriginal.call( this, name );
};
} );

@param {Function} originalFunction The function to be overridden.
@param {Function} functionBuilder A function that returns the new
function. The original function reference will be passed to this function.
@returns {Function} The new function.
Creates a function override .