Details

      Description

      Please check the following example.

      <use-jscore-framework>true</use-jscore-framework>
      <property name="run-on-main-thread" type="bool">true</property>
      

      var win = Ti.UI.createWindow();
       
      var textFieldA = Titanium.UI.createTextField({
      	height:'35dip',
      	width:'100dip',
      	top:'60dip',
         	hintText:L('To'),
         	value:0,
      	font:{fontSize:'18sp', fontWeight:'normal', fontFamily:'Tahoma'},
      	color:'#808080'
      });
       
      win.add(textFieldA);
       
      var textFieldB = Titanium.UI.createTextField({
      	height:'35dip',
      	width:'100dip',
      	top:'120dip',
         	hintText:L('To'),
         	value:0,
      	font:{fontSize:'18sp', fontWeight:'normal', fontFamily:'Tahoma'},
      	color:'#808080'
      });
       
      win.add(textFieldB);
       
      textFieldA.addEventListener('change', function() {
      	Ti.API.info(textFieldA.hasText());
      	Ti.API.info(textFieldB.hasText());
      });
       
      win.open();
      

      [ERROR] :  Script Error {
      [ERROR] :      column = 32;
      [ERROR] :      line = 31;
      [ERROR] :      message = "-[__NSCFNumber length]: unrecognized selector sent to instance 0xf1166b2877fc7f68";
      [ERROR] :      nativeStack = "3   CoreFoundation  0x0000000114a37ed6 ___forwarding___ + 1446\n4   CoreFoundation  0x0000000114a39da8 _CF_forwarding_prep_0 + 120\n5   Random0x000000010c6122df -[TiUITextWidgetProxy hasText:] + 367\n6   CoreFoundation  0x0000000114a3a03c __invoking___ + 140\n7   CoreFoundation  0x0000000114a374d5 -[NSInvocation invoke] + 325\n8   Random0x000000010c62c642 -[KrollMethod call:] + 2114\n9   Random0x000000010c62aeb2 __KrollCallAsFunction_block_invoke + 50\n10  Random0x000000010c73ff8e TiThreadPerformOnMainThread + 78\n11  Random0x000000010c62ab60 KrollCallAsFunction + 704\n12  JavaScriptCore  0x000000010d30d5b3 _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE4callEPNS_9ExecStateE + 515\n13  JavaScriptCore  0x000000010d89b571 _ZN3JSC5LLInt9setUpCallEPNS_9ExecStateEPNS_11InstructionENS_22CodeSpecializationKindENS_7JSValueEPNS_17LLIntCallLinkInfoE + 385\n14  JavaScriptCore  0x000000010d2da32f llint_entry + 26803\n15  JavaScriptCore  0x000000010d2d38fe vmEntryToJavaScript + 244\n16  JavaScriptCore  0x000000010d7cf846 _ZN3JSC11Interpreter11executeCallEPNS_9ExecStateEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 470\n17  JavaScriptCore  0x000000010d9d09b4 _ZN3JSC12profiledCallEPNS_9ExecStateENS_15ProfilingReasonENS_7JSValueENS_8CallTypeERKNS_8CallDataES3_RKNS_7ArgListE + 196\n18  JavaScriptCore  0x000000010d3132d4 JSObjectCallAsFunction + 468\n19  Random0x000000010c894946 __TiBindingEventProcess_block_invoke + 86";
      [ERROR] :      sourceURL = "file:///Users//Library/Developer/CoreSimulator/Devices/7F806F4D-BC9D-468C-B3C3-1D218543724D/data/Containers/Bundle/Application/9AB9A6C9-927A-45DA-829D-475EF3474B44/Random.app/app.js";
      [ERROR] :      stack = "    at [native code]\n    at (/app.js:31:32)\n    at [native code]\n    at (/app.js:34:9)\n    at global code(/app.js:36:70)\n    at require@[native code]\n    at (/ti.main.js:27:10)\n    at loadAsync(/ti.internal/bootstrap.loader.js:106:11)\n    at global code(/ti.main.js:24:52)";
      [ERROR] :      toJSON = "<KrollCallback: 0x6000001a1080>";
      [ERROR] :  }
      

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              andreas.pingas Andreas Pingas
              Reviewer:
              Jan Vennemann
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code