concrete5/concrete5 — pull request #415 by m-abs (2012-01-20 14:14:57+00:00)
Title: Block javascript encapsulation.

The JavaScript objects describing block elements are in the global scope, the code is also missing the var-keyword to define the variable.

This commit moves the object to a closure, making the object a private variable that is parsed to the ccm_menuInit-function.

This pull request is related to my bug-report about jslint http://www.concrete5.org/developers/bugs/5-5-0/javascript-code-doesnt-pass-jslint-tests/