{ "id": "150085", "key": "TIMOB-19632", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2015-08-01T22:43:22.000+0000", "priority": null, "labels": [ "parity" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:56.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "Pass the argument as follows will result in all arguments - i.e ratable, rate being converted to String type in widget.js\r\n{code:xml}\r\n\r\n{code}\r\n\r\nHowever, if I attach arguments to a view as below\r\n{code:xml|title=index.xml}\r\n\r\n{code}\r\n\r\n{code:xml|title=index.js}\r\n_.isBoolean(my_view.ratable) === true; //true!\r\n{code}\r\n\r\nI think we need make widget behave the same as view in terms of arguments type.\r\n\r\n\r\n\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Alloy widget always converts argument type to string", "creator": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Alloy 1.6.1\r\nTi.SDK 4.0.0\r\n", "comment": { "comments": [ { "id": "359547", "author": { "name": "pchowdhury", "key": "pchowdhury", "displayName": "Papia Chowdhury", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello [~jialhe85@gmail.com],\r\n\r\nCould you please attach full test case and steps to reproduce this issue.\r\n\r\nThanks.", "updateAuthor": { "name": "pchowdhury", "key": "pchowdhury", "displayName": "Papia Chowdhury", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-11T09:31:56.000+0000", "updated": "2015-08-11T09:31:56.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }