N
Nick S
I've just been trying to de-construct the jQuery tooltop plugin in an
attempt to better my javascript coding and I've come across a question
google can't help me with.
What is the deal with initializing a variable like this?
var helper = {},
// the current tooltipped element
current,
// the title of the current element, used for restoring
title,
// timeout id for delayed tooltips
tID,
// IE 5.5 or 6
IE = $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent),
// flag for mouse tracking
track = false;
What are the first curly braces?
Thanks
attempt to better my javascript coding and I've come across a question
google can't help me with.
What is the deal with initializing a variable like this?
var helper = {},
// the current tooltipped element
current,
// the title of the current element, used for restoring
title,
// timeout id for delayed tooltips
tID,
// IE 5.5 or 6
IE = $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent),
// flag for mouse tracking
track = false;
What are the first curly braces?
Thanks