Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8474] iOS: Ti.Gesture.getLandscape() and Ti.Gesture.getPortrait() return undefined instead of boolean

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 1.8.2, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterChristian Siegert
AssigneeUnknown
Created2012-04-01T02:40:13.000+0000
Updated2018-02-28T20:03:40.000+0000

Description

*Problem* Ti.Gesture.getLandscape(), Ti.Gesture.getPortrait(), Ti.Gesture.landscape and Ti.Gesture.portrait all return undefined instead of a boolean value. *Test case*
Ti.API.info("Ti.Gesture.getLandscape(): " + Ti.Gesture.getLandscape());
Ti.API.info("Ti.Gesture.getPortrait(): " + Ti.Gesture.getPortrait());

Ti.API.info("Ti.Gesture.landscape: " + Ti.Gesture.landscape);
Ti.API.info("Ti.Gesture.portrait: " + Ti.Gesture.portrait);
Console output: {noformat} [INFO] Ti.Gesture.getLandscape(): undefined [INFO] Ti.Gesture.getPortrait(): undefined [INFO] Ti.Gesture.landscape: undefined [INFO] Ti.Gesture.portrait: undefined {noformat}

Comments

  1. Jon Ege Ronnenberg 2012-04-11

    Confirmed bug on iPad 3, Platform & version: iOS 5.1
  2. jithinpv 2013-04-04

    Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0
  3. Alexander Frischbutter 2014-06-12

    confirmed on 3.2.3

JSON Source