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

Properties of Titanium.UI.View members can not be deleted

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: Sprint 2011-31
    • Component/s: iOS
    • Labels:
    • Environment:
      • Mac OS X 10.6.7
      • iOS Simulator (OS ver 4.3)
      • Titanium SDK: 1.7.1 06/21/11 14:28 1293a6d

      Description

      Properties of Titanium.UI.View members can not be deleted

      app.js

      var myApp = {};
       
      myApp.ui = {};
       
      myApp.ui.createMyView = function() {
          var v = Ti.UI.createView({});
          v.abc = {a:1,b:2,c:3};
          return v;
      };
       
      var testVar = {abc:{a:1,b:2,c:3}};
      var myView = myApp.ui.createMyView();
       
      alert(JSON.stringify(myView.abc));    // {"a":1,"b":2,"c":3}
      alert(JSON.stringify(testVar.abc));   // {"a":1,"b":2,"c":3}
       
      delete myView.abc.a;
      delete testVar.abc.a;
       
      alert(JSON.stringify(myView.abc));    // {"a":1,"b":2,"c":3} !!!, shold be {"b":2,"c":3}
      alert(JSON.stringify(testVar.abc));   // {"b":2,"c":3} - OK
      

        Attachments

          Activity

            People

            • Assignee:
              blainhamon Blain Hamon
              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-4155
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration