{ "id": "105646", "key": "ALOY-400", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "14633", "description": "Alloy 0.3.3", "name": "Alloy 0.3.3", "archived": false, "released": true, "releaseDate": "2012-11-30" }, { "id": "14772", "description": "2012 Sprint 24", "name": "2012 Sprint 24", "archived": true, "released": true, "releaseDate": "2012-12-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-29T18:30:45.000+0000", "created": "2012-11-28T23:32:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:26:00.000+0000", "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" } }, "components": [ { "id": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "It makes more sense to organize standard properties for the Alloy namespace object within the runtime Alloy.js file, rather than initializing them in the app.js itself. For example, the app.js template:\r\n\r\n{code:javascript}\r\n/**\r\n * Alloy for Titanium by Appcelerator\r\n * This is generated code, DO NOT MODIFY - changes will be lost!\r\n * Copyright (c) 2012 by Appcelerator, Inc.\r\n */\r\nvar Alloy = require('alloy'),\r\n\t_ = require('alloy/underscore')._;\r\n\r\nAlloy.Collections = {};\r\nAlloy.globals = {};\r\nAlloy.CFG = require('alloy/CFG');\r\n<%= alloyJs %>\r\nAlloy.createController('index');\r\n{code}\r\n\r\nIdeally, it will look like this, with all code that was removed placed in the actual runtime Resources/alloy.js library:\r\n\r\n{code:javascript}\r\n/**\r\n * Alloy for Titanium by Appcelerator\r\n * This is generated code, DO NOT MODIFY - changes will be lost!\r\n * Copyright (c) 2012 by Appcelerator, Inc.\r\n */\r\nvar Alloy = require('alloy'),\r\n\t_ = require('alloy/underscore')._;\r\n\r\n<%= alloyJs %>\r\nAlloy.createController('index');\r\n{code}", "attachment": [], "flagged": false, "summary": "Move Alloy properties (like globals, Collections, Models, CFG) into alloy.js instead of app.js", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "229073", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "All discussed changes have been made, organizing Alloy namespace relevant items in the alloy.js runtime file. In addition, updates have been made to the inline documentation which tells us how these namespaces and object works. They include samples and any deprecation notes.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-29T18:30:45.000+0000", "updated": "2012-11-29T18:30:45.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }