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

strict mode breaks Infusion components in Safari

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 1.5
    • Framework
    • None
    • Safari 7.0.2 (9537.74.9)

    Description

      Strict mode breaks Infusion components in Safari causing the following error to appear in the console. Disabling strict mode fixes this. Firefox and Chrome in Mac is fine.

      [Error] TypeError: Attempted to assign to readonly property.
      (anonymous function) (Fluid.js, line 1461)
      transformInternal (Fluid.js, line 419)
      transform (Fluid.js, line 440)
      (anonymous function) (Fluid.js, line 1460)
      transformInternal (Fluid.js, line 419)
      transform (Fluid.js, line 444)
      annotateListeners (Fluid.js, line 1458)
      rawDefaults (Fluid.js, line 1476)
      defaults (Fluid.js, line 1530)
      (anonymous function) (OverviewPanel.js, line 24)
      [Error] TypeError: '[object Object]' is not a function (evaluating 'fluid.overviewPanel(".flc-overviewPanel")')
      (anonymous function) (overviewPanel.html, line 44)
      fire (jquery.js, line 3099)
      fireWith (jquery.js, line 3211)
      ready (jquery.js, line 3423)
      completed (jquery.js, line 3453)

      To reproduce:
      1. Load any infusion demo (i.e. image reorderer or inline edit) in Safari
      2. Notice you can't interact with the demo.
      3. Remove / comment 'use strict' from Fluid.js
      4. Reload demo in Safari - notice that the demo works.

      Attachments

        Issue Links

          Activity

            People

              antranig Antranig Basman
              jhung Jonathan Hung
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: