Metadata
- Source
- FLUID-5071
- Type
- Bug
- Priority
- Major
- Status
- Closed
- Resolution
- Fixed
- Assignee
- Antranig Basman
- Reporter
- Justin Obara
- Created
2013-06-27T13:06:33.672-0400 - Updated
2015-06-15T10:36:01.293-0400 - Versions
- N/A
- Fixed Versions
-
- 1.5
- Component
-
- Demos
- Framework
- Image Reorderer
- Inline Edit
- Keyboard Accessibility
- Layout Reorderer
- Pager
- Prefs Framework
- Progress
- Renderer
- Reorderer
- Sliding Panel
- Table of Contents
- Testing Infrastructure
- Textfield Slider
- Tooltip
- UIEnhancer
- UI Options
- Undo
- Uploader
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);
Comments
-
Justin Obara commented
2015-06-15T10:36:01.291-0400 This was addressed in FLUID-5284 when switching to use jsHint.