{ "id": "114747", "key": "ALOY-665", "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": [ { "id": "15402", "description": "Alloy 1.2.0, concurrent with SDK 3.1.0", "name": "Alloy 1.2.0", "archived": false, "released": true, "releaseDate": "2013-08-15" }, { "id": "15529", "description": "2013 Sprint 13", "name": "2013 Sprint 13", "archived": true, "released": true, "releaseDate": "2013-07-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-20T02:59:40.000+0000", "created": "2013-05-22T03:00:30.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "alloy", "qe-testadded" ], "versions": [ { "id": "15512", "description": "Alloy 1.1.3", "name": "Alloy 1.1.3", "archived": false, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-15T22:32:30.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" }, { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "Hi,\r\nI got this error when I use namespace in markup event.\r\n\r\nFor example:\r\n\r\nHome.xml\r\n{code:xml}\r\n\r\n{code}\r\n\r\nHome.js\r\n{code:javascript}\r\nvar Home = {}\r\n \r\nHome.onOrderClick = function() {\r\n \r\n}\r\n{code}\r\n\r\nI got this error:\r\nundefined' is not an object (evaluating 'Home.onOrderClick')\r\n\r\nthen I opened compiled Home.js and I saw this:\r\n\r\n{code:javascript}\r\nHome.onOrderClick ? $.__views.orderButton.addEventListener(\"click\", Home.onOrderClick) : __defers[\"$.__views.orderButton!click!onOrderClick\"] = true;\r\n{code}\r\n\r\nI think you can fixed it with this code\r\n\r\n{code:javascript}\r\nHome != null && Home.onOrderClick ? $.__views.orderButton.addEventListener(\"click\", Home.onOrderClick) : __defers[\"$.__views.orderButton!click!onOrderClick\"] = true;\r\n{code}\r\n \r\nThanks", "attachment": [], "flagged": false, "summary": "Using namespace in markup event", "creator": { "name": "navid_gh", "key": "navid_gh", "displayName": "Navid Ghahramani", "active": true, "timeZone": "Asia/Tehran" }, "subtasks": [], "reporter": { "name": "navid_gh", "key": "navid_gh", "displayName": "Navid Ghahramani", "active": true, "timeZone": "Asia/Tehran" }, "environment": "Mac\r\niOS and Android\r\n", "comment": { "comments": [ { "id": "258684", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/alloy/pull/159\r\ntest app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-665\r\n\r\nFunctional testing can be passed by successfully running the app on all supported platforms. The fact that the app runs without a runtime error on initial load indicates that the bug is fixed. You can additionally test by generating touchstart, touchend, and swipe events. Confirming that all 3 events pop up in the console log will further attest to its improvement, but this is not entirely necessary as I don't want any possible platform disparities to be interpreted as issues directly related to this ticket.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-20T02:59:40.000+0000", "updated": "2013-06-20T02:59:40.000+0000" }, { "id": "261898", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed.\n\nEnvironment:\nTitanium SDK 3.1.2.v20130710144553\nAppcelerator Studio 3.1.2.201307101037\nAlloy 1.2.0\nAndroid 4.2.2 and iOS 5\n\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-15T22:32:14.000+0000", "updated": "2013-07-15T22:32:14.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }