Project: titanium
Issue TIMOB-4644: iOS: New properties of Titanium.UI.View beginning with "get" always link to main object
New properties of Titanium.UI.View beginning with "get" always link to main object {code} var myApp = {}; myApp.ui = {}; myApp.ui.createMyView = function() { var v = Ti.UI.createView({}); v.getSomething = function() { return 100; }; v._getSomething = function() { return 100; }; v.getFood = 200; return v; }; var myView = myApp.ui.createMyView(); alert(myView.getSomething); // [object TiUIView], shold be function alert(myView.getSomething()); // nothing, shold be "100" alert(myView._getSomething()); // "100" - OK alert(myView.getFood); // [object TiUIView], shold be 200 {code}
Story points: 3