diff -r f943a50b6689 -r ba20dd5983c7 org.symbian.tools.wrttools.previewer/preview/script/nokia.js --- a/org.symbian.tools.wrttools.previewer/preview/script/nokia.js Tue Jun 29 13:44:16 2010 -0700 +++ b/org.symbian.tools.wrttools.previewer/preview/script/nokia.js Tue Jun 29 17:21:51 2010 -0700 @@ -25,8 +25,8 @@ version : 'WRT 1.1', currentDevice : '240x320', mode : 'portrait', - orientation : 0, resolution : ['240x320', '320x240', '360x640', '800x352'], + rotationSupport : false, scriptsLoaded : { loader : false, widget : false, @@ -50,6 +50,8 @@ NOKIA.init = function() { + this.rotationSupport = new RotationSupport(accelerationCallback); + // Not-Supported Browser check NOKIA.emulator.is_browserReady = (/MSIE/i.test(navigator.userAgent)); if(NOKIA.emulator.is_browserReady) @@ -128,8 +130,6 @@ // For getting Icon.png this.helper.getInfo('Icon.png', NOKIA.helper.getIconCallback); - - new RotationSupport(accelerationCallback); }; /*