Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-5071

turn on strict mode in all javascript files

    XMLWordPrintable

Details

    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);

      Attachments

        Activity

          People

            antranig Antranig Basman
            jobara Justin Obara
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: