Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
Description
we should make use of strict mode for all of the infusion javascript code.
For details on what strict mode is see MDN;
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/Strict_mode
For any code that will concatenated into the single MyInfusion.js file we must ensure that the strict mode is within our closure scope, so as not to force strict mode onto any of our 3rd party dependencies.
e.g.
(function ($, fluid)
{ use strict; // infusion code })(jQuery, fluid_version);