[TIMOB-5136] Android: "instanceof check" fails
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-05-02T22:03:50.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | n/a |
Components | n/a |
Labels | android, instanceof |
Reporter | Thomas Huelbert |
Assignee | Ingo Muschenetz |
Created | 2011-08-26T16:16:45.000+0000 |
Updated | 2017-05-02T22:03:50.000+0000 |
Description
1.see it in KS, when the app is first launched (adb logcat)
2. the failure line is
Ti.API.info("instanceof check, should be false => " + (Ti.UI.createView() instanceof Ti.UI.createWindow()));
Just ran into this on 1.8.0.1. Why are these instanceof() checks still there if they [no longer/don't] work?
I have a Date object and when I do: if (MyObj instance of Date == false) {} the answer is always false when it is a date.
This just got me again in another app.. Took me 2 days to find it as 3.0 doesn't seem to report when you throw an error! Why isn't this supported in Android it's a standard part of JS, and works great on iOS.. :(
bump for scheduling
I am unable to reproduce the above issue using KitchenSink from master branch with following environment: Mac :10.9.3 Appcelerator Studio, build: 3.3.0.201406271159 SDK :3.3.0.v20140702175712 acs-1.0.15 alloy@1.4.0-rc3 npm-1.3.2 titanium@3.3.0-rc4 titanium-code-processor-1.1.1