Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-4644

iOS: New properties of Titanium.UI.View beginning with "get" always link to main object

    Details

    • Story Points:
      3

      Description

      New properties of Titanium.UI.View beginning with "get" always link to main object

      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
      

        Attachments

          Activity

            People

            • Assignee:
              stephentramer Stephen Tramer
              Reporter:
              myurasov Mikhail Yurasov
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-3949
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration