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

Support newer versions of Underscore / Lodash


    • Type: Improvement
    • Status: Resolved
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tooling
    • Labels:
    • Story Points:
    • Sprint:
      2017 Sprint 25 Tooling


      This is different than ticket ALOY-1168: https://jira.appcelerator.org/browse/ALOY-1168

      ALOY-1168 is about replacing the shipped version of underscore. This ticket is about supporting apps where underscore is replaced by the developer. I still think that ALOY-1168 should be implemented and I have developed it in a fork (https://github.com/mobilehero/adamantium/tree/feature/underscore-to-lodash), but I am having issues w/ the tests.

      Currently, Alloy allows developer to replace the current version of underscore with a different version (or with lodash) by putting the updated underscore.js file in the directory: /app/lib/alloy.

      However, the issue is that the code that Alloy generates for a controller that uses databinding, references the old version of _.template.

      There are probably several different ways this could be solved to support both old and new versions of Underscore. One might be to check the version of underscore. I think the function was changed in 1.7.0.

      Let me know if you think there is a workable solution and I can create a PR and tests for it. Thanks!!


          Issue Links



              • Assignee:
                fmiao Feon Sua Xin Miao
                brentonhouse Brenton House
              • Watchers:
                7 Start watching this issue


                • Created:

                  Backbone Issue Sync

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

                    Git Integration