Fixed CB-501 - orientationchange event is not being fired in 1.6.0
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/7588deb7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/7588deb7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/7588deb7 Branch: refs/heads/master Commit: 7588deb79e8bd28e0a05db62f5a80108a927644c Parents: 32e6f9b Author: Shazron Abdullah <[email protected]> Authored: Fri Apr 13 07:07:58 2012 -0700 Committer: Shazron Abdullah <[email protected]> Committed: Fri Apr 13 07:56:49 2012 -0700 ---------------------------------------------------------------------- CordovaLib/Classes/CDVViewController.m | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/7588deb7/CordovaLib/Classes/CDVViewController.m ---------------------------------------------------------------------- diff --git a/CordovaLib/Classes/CDVViewController.m b/CordovaLib/Classes/CDVViewController.m index 6fb34cd..95b9066 100644 --- a/CordovaLib/Classes/CDVViewController.m +++ b/CordovaLib/Classes/CDVViewController.m @@ -304,7 +304,7 @@ break; } // TODO: update JS references here - NSString* jsCallback = [NSString stringWithFormat:@"window.__defineGetter__('orientation',function(){ return %d; }); Cordova.fireEvent('orientationchange', window);",i]; + NSString* jsCallback = [NSString stringWithFormat:@"window.__defineGetter__('orientation',function(){ return %d; }); cordova.fireEvent('orientationchange', window);",i]; [self.webView stringByEvaluatingJavaScriptFromString:jsCallback]; } @@ -419,7 +419,7 @@ NSURL* url = [request URL]; /* - * Execute any commands queued with Cordova.exec() on the JS side. + * Execute any commands queued with cordova.exec() on the JS side. * The part of the URL after gap:// is irrelevant. */ if ([[url scheme] isEqualToString:@"gap"]) {
