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

Alloy dynamic styling can't handle WPATH

    Details

      Description

      Using Alloy 1.2.0-Alpha5 and TiSDK 3.1.1GA

      Test app source: https://dl.dropboxusercontent.com/u/1849335/Titanium-Jira/WPATH-test.zip

      Error message

      [ERROR] :  Script Error {
      [ERROR] :      backtrace = "#0 () at file:///Users/timanrebel/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/7ABD14AC-FA2C-4D47-AE4D-561F698D3C12/WPATH-test.app/alloy/widgets/wpathWidget/styles/widget.js:9";
      [ERROR] :      line = 6;
      [ERROR] :      message = "Can't find variable: WPATH";
      [ERROR] :      name = ReferenceError;
      [ERROR] :      sourceId = 296484448;
      [ERROR] :      sourceURL = "file:///Users/timanrebel/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/7ABD14AC-FA2C-4D47-AE4D-561F698D3C12/WPATH-test.app/alloy/widgets/wpathWidget/styles/widget.js";
      [ERROR] :  }
      [ERROR] :  Script Error Module "alloy/widgets/wpathWidget/styles/widget" failed to leave a valid exports object
      

      widget.tss

      ".myImage": {
          image: WPATH('testImage.jpg')
      }
      

      widget.js

      var myImage = $.UI.create('ImageView', {
      	classes: 'myImage'
      });
      

        Attachments

          Activity

            People

            • Assignee:
              tlukasavage Tony Lukasavage
              Reporter:
              timanrebel Timan Rebel
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration