commented out unused - unminified js code
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/commit/47446e7e Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/47446e7e Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/47446e7e Branch: refs/heads/master Commit: 47446e7ea00ce78d251194c610f7536f2867c9af Parents: 817124c Author: Jesse MacFadyen <purplecabb...@gmail.com> Authored: Fri May 25 13:31:19 2012 -0700 Committer: Jesse MacFadyen <purplecabb...@gmail.com> Committed: Fri May 25 13:31:19 2012 -0700 ---------------------------------------------------------------------- framework/Cordova/BrowserMouseHelper.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/47446e7e/framework/Cordova/BrowserMouseHelper.cs ---------------------------------------------------------------------- diff --git a/framework/Cordova/BrowserMouseHelper.cs b/framework/Cordova/BrowserMouseHelper.cs index 65fc825..4a6784a 100644 --- a/framework/Cordova/BrowserMouseHelper.cs +++ b/framework/Cordova/BrowserMouseHelper.cs @@ -21,7 +21,7 @@ namespace WP7CordovaClassLib * * Full Script below, in use it is minified. */ - + /* private static string mouseScript = @"(function(win,doc){ Object.defineProperty( MouseEvent.prototype, 'pageX', { @@ -48,7 +48,7 @@ namespace WP7CordovaClassLib catch(e) { return e;} } })(window,document);"; - + */ private static string MinifiedMouseScript = "(function(f,a){Object.defineProperty(MouseEvent.prototype,'pageX',{configurable:!0,get:function(){return this.clientX}});Object.defineProperty(MouseEvent.prototype,'pageY',{configurable:!0,get:function(){return this.clientY}});f.onNativeMouseEvent=function(g,h,i)" + "{try{var j=screen.logicalXDPI/screen.deviceXDPI,k=screen.logicalYDPI/screen.deviceYDPI,b=a.createEvent('MouseEvents'),c=a.body.scrollLeft+Math.round(j*h),d=a.body.scrollTop+Math.round(k*i),e=a.elementFromPoint(c,d);b.initMouseEvent(g,!0,!0,"