Titanium JIRA Archive
Alloy (ALOY)

[ALOY-171] "src" and "type" attributes from <Require> should not be passed to the generated code

GitHub Issuen/a
TypeBug
PriorityLow
StatusResolved
ResolutionFixed
Resolution Date2012-08-15T07:45:14.000+0000
Affected Version/s2012 Sprint 17
Fix Version/s2012 Sprint 17, Release 3.0.0
ComponentsXML
Labelsn/a
ReporterTony Lukasavage
AssigneeUnknown
Created2012-08-13T12:19:49.000+0000
Updated2018-03-07T22:25:46.000+0000

Description

<Require type="widget" src="com.appc.someWidget" id="theWidget"/> 
generate this:
$.theWidget = new (Alloy.getWidget("com.appc.someWidget"))({
    type: "widget",
    src: "com.appc.someWidget"
});
it should just generate this:
$.theWidget = new (Alloy.getWidget("com.appc.someWidget"))();

Comments

No comments

JSON Source