Could any body explain more about these?

Jan 5, 2012 at 9:20 PM


The Widget is really made me very confused.

.bind('mouseenter.' , event, { name: tag});

Why do you put the dot(.) after mouseenter?

Jan 6, 2012 at 3:39 PM
Edited Jan 6, 2012 at 3:42 PM


Based on my understanding the period (.) character is used to separate the event from its namespace. For example, in the call:

.bind('mouseenter.' + name, function (event){...})

The mouseenter is the event type, and the name that is appended is the namespace. Namespacing will allow you to unbind or trigger some events of a type without affecting others.

You can find more information about this in the following links:

I hope you find this handy,

Agustin Adami

Jan 12, 2012 at 4:31 AM

Thanks. I got it that is an optional. Such us Click.widgetName.