{ "id": "113565", "key": "ALOY-646", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-07-07T16:55:53.000+0000", "created": "2013-04-30T08:15:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "markup", "module", "native" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:28:29.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 Tony,\r\n\r\nProblem: How do we do this with markup:\r\n{code:title=oldscrool.js}\r\nvar instance = Module.createView({\r\n backgroundColor:\"#000\",\r\n options : {\r\n \ttintColor:\"#444\",\r\n pageMode : myVariable\r\n }\r\n});\r\n{code}\r\n{code:xml|title=alloy}\r\n\r\n \r\n\r\n{code} \r\n\r\n\r\nSuggestion:\r\nNo method - only module reference and a lazyOnInit (or whatever name :) ) property that not are being called before its run in the controller.\r\n{code:xml}\r\n\r\n \r\n\r\n{code}\r\n\r\n{code:javascript}\r\n$.myModule.lazyOnInit({\r\n backgroundColor:\"#000\",\r\n options : {\r\n \ttintColor:\"#444\",\r\n pageMode : myVariable\r\n }\r\n});\r\n{code}\r\n\r\n\r\nDoes it make sence? \r\n\r\nMads", "attachment": [], "flagged": false, "summary": "Alloy: Module args on method", "creator": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Alloy 1.1", "comment": { "comments": [ { "id": "272844", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can't you just do this with TSS? The create function you specify in the \"method\" attribute should make use of any TSS that applies to it.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-25T16:41:09.000+0000", "updated": "2013-09-25T16:41:09.000+0000" }, { "id": "435360", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid. If this is incorrect, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-07T22:28:29.000+0000", "updated": "2018-03-07T22:28:29.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }