Hi,
I know that the $ sign has some special meaning like for shorthands functions ($get, $find, $addHandler, ...)
So at the moment I'm trying to get a grasp of the inner workings of this and saw this in the toolkit (which holds a wealth of information):
this._button$delegates = {
click : Function.createDelegate(this, this._button_onclick);
}
Like I see it this only creates a delegate to theeventhandler onclick of the button.
but does that $ in _button$delegates have any meaning? Or is it just convention to write it like that?
Grz, Kris.
The $ has no special meaning. The writers of the framework chose to use it to prepend certain common functions, and in they also used it as a naming convention for functions that would become methods.
No comments:
Post a Comment