Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1266

Use indirect eval instead of direct eval

    Details

    • Type: Improvement
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Runtime, Styling
    • Labels:
      None
    • Environment:

      master

      Description

      As pointed out by many resources, including Effective JavaScript it is better to use eval() in indirect mode.

      For $.UI.create we are currently using direct eval(), which can easily be made indirect by replace eval with (0,eval).

      PR on master: https://github.com/appcelerator/alloy/pull/686

        Attachments

          Activity

            People

            • Assignee:
              batman Bruce Wayne
              Reporter:
              fokkezb Fokke Zandbergen
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration