[ALOY-830] Alloy: ns should not be passed to create function
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-01-22T16:40:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.4.0 |
Components | Samples & Templates |
Labels | alloy, map, qe-testadded |
Reporter | Fokke Zandbergen |
Assignee | Tony Lukasavage |
Created | 2013-09-18T13:41:24.000+0000 |
Updated | 2014-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
- Tony Lukasavage 2014-01-22 PR: https://github.com/appcelerator/alloy/pull/307 Use the "steps to reproduce" above to functionally validate.
- Federico Casali 2014-05-15