[TIMOB-6951] iOS: Ti.Platform.displayCaps is undefined
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-02-10T00:07:00.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | parity, regression |
Reporter | Kevin Whinnery |
Assignee | Stephen Tramer |
Created | 2012-01-02T10:29:59.000+0000 |
Updated | 2012-02-10T00:07:00.000+0000 |
Description
In 1.8.0.1 Ti.Platform.displayCaps is undefined on iOS. It's not critical, since iOS does not need that information so much as Android does, but either the information should be provided, or the cross-platform limitations should be documented.
This ticket requires a test case before it can be resolved. DisplayCaps is not
undefined
ornull
under normal circumstances, as in this test app:I cannot reproduce the issue with
displayCaps
on iPhone simulator + iOS5 with either 1.8.0.1 or 1.7.5. However, when it is spelled with a capital,DisplayCaps
, is it undefined. See errors:On Android 2.2 + 1.8.0.1, it works regardless.
As per discussion with Marshall and Opie, the correct API point is
Ti.Platform.displayCaps
, which matches the documentation.Ti.Platform.DisplayCaps
may not even be a valid object on Android.