Closed gfranko closed 11 years ago
just an FYI !function() {}() is the same as (function() {}), but 1 less byte. :-)
I'll take a look at the rest today
Interesting... I never knew that! Awesome work on the plugin. I might post one or more bug fixes later today.
Immediately-Invoked Function Expression
Wrapped the plugin in an Immediately-Invoked Function Expression (best practice)
Windows Object
Locally passed in the
windows
object to be minifier friendly.Unnecessary var statements
Unnecessary
var
statements were also removed, since you only need to declarevar
for the first variable declaration.Example Demo
The example demo was also updated to more reflect the demo on the project homepage.