Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 18A709288 for ; Fri, 25 May 2012 23:34:07 +0000 (UTC) Received: (qmail 84668 invoked by uid 500); 25 May 2012 23:34:06 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 84619 invoked by uid 500); 25 May 2012 23:34:06 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 84294 invoked by uid 99); 25 May 2012 23:34:06 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2012 23:34:06 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 05C9018152; Fri, 25 May 2012 23:34:06 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: purplecabbage@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [17/18] wp7 commit: commented out unused - unminified js code Message-Id: <20120525233406.05C9018152@tyr.zones.apache.org> Date: Fri, 25 May 2012 23:34:06 +0000 (UTC) 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 Authored: Fri May 25 13:31:19 2012 -0700 Committer: Jesse MacFadyen 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,"