Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » rap.on with context
rap.on with context [message #1232256] Thu, 16 January 2014 09:26 Go to next message
Martin Tauber is currently offline Martin Tauber
Messages: 116
Registered: July 2009
Senior Member
Hi everybody,

I'm developing my own rap widgets and here is suggestion for the API it
would be nice to extend the rap.on method so that it takes a context
which I then could access via this in the method. (and maybe even
parameters ...) This would make some codeing more elegant ...

Regards
Martin
Re: rap.on with context [message #1232609 is a reply to message #1232256] Fri, 17 January 2014 05:17 Go to previous message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 381
Registered: July 2009
Senior Member
Hi.

There has already been some internal discussion about whether we should
do this or not. When you look at the CKEditor handler.js you will see
that you can work around this with a utility called bindAll. I currently
think it's more likely that we will add something like this to RAP than
extending rap.on itself, but your opinion will definitely be considered
for future decisions.

Greetings,
Tim

Am 16.01.2014 15:26, schrieb Martin Tauber:
>
> I'm developing my own rap widgets and here is suggestion for the API it
> would be nice to extend the rap.on method so that it takes a context
> which I then could access via this in the method. (and maybe even
> parameters ...) This would make some codeing more elegant ...

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:CTabitem vs TabItem theming
Next Topic:Browser control and tab sequencing
Goto Forum:
  


Current Time: Sat Aug 23 07:27:56 EDT 2014

Powered by FUDForum. Page generated in 0.02082 seconds