PDA

View Full Version : Wanted: Ext-counterpart of Prototype's function.wrap



wexman
12 Nov 2010, 1:08 AM
Hi,

I'm in search of something like function.wrap (http://www.prototypejs.org/api/function/wrap) of the Prototype framework. So far, I've looked at Ext's createCallback(), createDelegate(), createInterceptor() and createSequence() functions. The last two are close, but I need to be able to alter the return value, which in those cases is used to specify whether or not to call the original function. However, I'm not sure if I fully understand the first two, maybe this can already be done.

Any ideas?