{ "id": "93535", "key": "TIMOB-9658", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [ { "id": "13415", "description": "Sprint 2012-09 Blackberry", "name": "Sprint 2012-09 BB", "archived": true, "released": true, "releaseDate": "2012-07-15" }, { "id": "14374", "description": "", "name": "BB Preview 3", "archived": true, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-06T08:31:35.000+0000", "created": "2012-06-20T08:37:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parent" ], "versions": [], "issuelinks": [], "assignee": { "name": "dlifshitz", "key": "dlifshitz", "displayName": "David Lifshitz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-08T17:33:04.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "Some of the Titanium implementation can be done using JavaScript so we need to provide a way to run our own bootstrapping .js files before we load app.js. There is possibly a lot of JavaScript code we can reuse from the android directory.\r\n\r\nThe method I suggest is to package the .js files into the .bar file. The files should be put into a new folder called \"framework\" that is next to, not inside, the \"assets\" folder. The \"assets\" and \"framework\" folders should be separate so we don't have conflicts. The only complication would be that the require() and include() functions might need a flag to know whether the app has been bootstrapped or not (ie read from \"framework\" if bootstrapping and \"assets\" if not). A flag may not be sufficient if things are done asynchronously so the other solution would be to check if the file calling the require/include is in \"framework\" or \"assets\" and make sure to load the file from the same directory.\r\n\r\nThere should be one file called boostrap.js that will include/require the other files, as needed.", "attachment": [], "flagged": false, "summary": "BlackBerry: Add JavaScript bootstrapping to framework", "creator": { "name": "dlifshitz", "key": "dlifshitz", "displayName": "David Lifshitz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [ { "id": "94106", "key": "TIMOB-9843", "fields": { "summary": "BlackBerry: Package framework's .js files", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } }, { "id": "94107", "key": "TIMOB-9844", "fields": { "summary": "BlackBerry: Include/require framework's .js files", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } ], "reporter": { "name": "dlifshitz", "key": "dlifshitz", "displayName": "David Lifshitz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "409840", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as resolved.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-08T17:33:04.000+0000", "updated": "2017-03-08T17:33:04.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }