Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi Niko, Watching the code on the action_DoLater.js , action_FadeScreen.js and others...(downloaded from CC website), and notice some parts the use of "me." instead of "this."
This is necesary?.. or is used this way only for readability reason? ...There be any problem if only use this. on all the code? |
||||
|
If you have a function created in there, like above in this.registeredFunction = function() { me.doLaterFunc(); }; Then a reference to the this using a variable named for example me usually is necessary, because in JavaScript, for event handlers and similar things, the 'this' sometimes refers to the window object when executed. It's a strange "feature" of JavaScript, but that's how it is, unfortunately. |
||||
|
Thanks Niko for expain it...! This help me to understand the code. |
|