Titanium JIRA Archive
Alloy (ALOY)

[ALOY-830] Alloy: ns should not be passed to create function

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-01-22T16:40:10.000+0000
Affected Version/sn/a
Fix Version/sAlloy 1.4.0
ComponentsSamples & Templates
Labelsalloy, map, qe-testadded
ReporterFokke Zandbergen
AssigneeTony Lukasavage
Created2013-09-18T13:41:24.000+0000
Updated2014-05-15T22:11:56.000+0000

Description

The namespace (ns) attribute should not be included in the dictionary passed to the create-function. This could result in major memory leaks and instabilities.

Steps to reproduce

Run the [ui/map](https://github.com/appcelerator/alloy/tree/master/test/apps/ui/map) app from the Alloy test suite.

Open the compiled index controller in Resources/alloy/controllers/index.js

See that that Ti.Map.createView gets a ns property with a reference to Ti.Map.

Comments

  1. Tony Lukasavage 2014-01-22

    PR: https://github.com/appcelerator/alloy/pull/307 Use the "steps to reproduce" above to functionally validate.
  2. Federico Casali 2014-05-15

JSON Source