Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16072] IOS: Function declared in alloy.js not working in LiveView

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2019-11-13T17:51:11.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsLiveView
Labelsalloy-v2, cb-tooling, supportTeam
ReporterMostafizur Rahman
AssigneeUnknown
Created2013-12-23T09:31:16.000+0000
Updated2019-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

Thanks

Attachments

FileDateSize
build.log2014-01-02T12:38:32.000+000056129
build copy.log2014-01-02T12:48:23.000+00005177
iOS Simulator Screen shot Jan 2, 2014 6.40.01 PM.png2014-01-02T12:40:21.000+0000524355

Comments

No comments

JSON Source