{ "id": "104350", "key": "ALOY-363", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2012-11-30T19:03:40.000+0000", "created": "2012-11-02T22:25:41.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "14631", "description": "Alloy 0.3.1", "name": "Alloy 0.3.1", "archived": false, "released": true, "releaseDate": "2012-11-02" } ], "issuelinks": [ { "id": "22511", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "outwardIssue": { "id": "103021", "key": "ALOY-323", "fields": { "summary": "Make Alloy support only TiSDK 3.0+", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-22T13:23:15.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12600", "name": "Samples & Templates" } ], "description": "Running the default alloy project in mobileweb fails with runtime error:\r\n\r\n{code}\r\nUncaught TypeError: Cannot use 'in' operator to search for 'click' in undefined index.html:5219\r\n{code}\r\n\r\nSteps to Reproduce:\r\n\r\n1. Create Default Alloy Project.\r\n2. Run project in MobileWeb.\r\n\r\nActual Result:\r\n\r\nRuntime Error.\r\n\r\nExpected Result:\r\n\r\n'Hello, World!'", "attachment": [], "flagged": false, "summary": "MobileWeb: Default Project: fails with Uncaught TypeError: Cannot use 'in' operator to search for 'click' in undefined index.html:5219", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 3.0.0.201210291448\r\nTitanium SDK: 3.0.0.v20121030170824\r\nOS: Mountain Lion 10.8.2\r\nBrowsers: Chrome, Firefox, Safari\r\nAlloy: 0.3.1\r\nTitanium CLI: disabled", "comment": { "comments": [ { "id": "226063", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This happens as a result of the fact that Mobileweb does not support compiler plugins in the pre-3.0.0 CLI. Because it does not support compiler plugins, alloy's compile process does not run and that vague error is the end result of an uncompiled app attempting to run for mobileweb. The only way now to successfully compile and run an alloy app for mobileweb through TiStudio is to first compile the application from the command line, then run it in TiStudio.\n\n{code}\nalloy compile --config platform=mobileweb\n{code}\n\nIn the long term, once TiSDK 3.0.0 is the minimum version supported by Alloy, this can be totally avoided as the new CLI in 3.0.0 will support compiler plugins (now called \"hooks\") for mobileweb. If you test against the new CLI now this should be the case, as it was when I tested last week. I have linked ALOY-323 to this ticket. As you can see, there's a lot of further Alloy advancements that hinge on the official release of 3.0.0.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-02T22:52:25.000+0000", "updated": "2012-11-02T22:52:25.000+0000" }, { "id": "226064", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to run the two-tab template for some reason in mobileweb.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-02T23:03:04.000+0000", "updated": "2012-11-02T23:03:04.000+0000" }, { "id": "226068", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Chances are that you recently built the two tabbed template for another platform, and the two tabbed template has nothing specific to that platform at compile time. In essence it will \"work\", but it is not actually compiled for mobileweb.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-02T23:16:50.000+0000", "updated": "2012-11-02T23:16:50.000+0000" }, { "id": "229351", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a bug with the old CLI as it relates to Mobileweb's lack of implementation of compiler plugins. The new CLI, available in Titanium 3.0+, will work as expected making this issue irrelevant when 3.0 is officially released.\r\n\r\nIn the meantime, those still using Titanium < 3.0 will just need to do a \r\n\r\n{code}\r\nalloy compile --config platform=mobileweb \r\n{code}\r\n\r\nbefore attempting to run alloy mobileweb apps in tistudio", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-30T19:03:40.000+0000", "updated": "2012-11-30T19:03:40.000+0000" }, { "id": "249768", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-01T20:01:50.000+0000", "updated": "2013-05-01T20:01:50.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }