Creating functions in objects using javascript -
i came across following recently, seems object declaration, starting semi-colon. works fine.
;(function() { var ..... = this; })()
are there difference in declaring way or if there alternatives?
there lot of concepts you've got wrong.
- though functions objects too, isn't object declaration, it's normal function declaration.
 - the functional form you've used self-invoking function.
 - the semi-colon 
;used code doesn't break when several scripts minified single file. 
Comments
Post a Comment