[TIMOB-16072] IOS: Function declared in alloy.js not working in LiveView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2019-11-13T17:51:11.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | LiveView |
Labels | alloy-v2, cb-tooling, supportTeam |
Reporter | Mostafizur Rahman |
Assignee | Unknown |
Created | 2013-12-23T09:31:16.000+0000 |
Updated | 2019-11-13T17:51:11.000+0000 |
Description
If a function is declared in alloy.js, the project fails to run in LiveView. SDK 3.2.0 GA, Alloy 1.3.0. The same project works fine when LiveView is disabled.
Test Code
alloy.js
function anything() {
}
workaround code in alloy.js
var anything = function() {
}
Step to Reproduce
Create new alloy project
Add test code in alloy.js file
function anything() {
}
Active LiveView and run on iOS simulator
app will not working(freeze)
again update alloy.js file with following code
var myfunction = function anything() {
}
Run again with LiveView
App will build successfully
ThanksAttachments
File | Date | Size |
---|---|---|
build.log | 2014-01-02T12:38:32.000+0000 | 56129 |
build copy.log | 2014-01-02T12:48:23.000+0000 | 5177 |
iOS Simulator Screen shot Jan 2, 2014 6.40.01 PM.png | 2014-01-02T12:40:21.000+0000 | 524355 |
No comments