[Pkg-mozext-commits] [firegestures] 09/18: [41.0a1] fix: HandleSwipeGesture is not defined

David Prévot taffit at moszumanska.debian.org
Sat May 23 10:58:42 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository firegestures.

commit d123a1f9c8cd2e31a395507270937a8e681ede0b
Author: Gomita <gomita at xuldev.org>
Date:   Sun May 17 01:49:31 2015 +0900

    [41.0a1] fix: HandleSwipeGesture is not defined
---
 chrome/content/firegestures/viewSource.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/chrome/content/firegestures/viewSource.js b/chrome/content/firegestures/viewSource.js
index d3df1c4..0688f07 100644
--- a/chrome/content/firegestures/viewSource.js
+++ b/chrome/content/firegestures/viewSource.js
@@ -18,7 +18,12 @@ var FireGesturesViewSource = {
 		this._gestureHandler.attach(getBrowser(), this);
 		this._gestureMapping = gestureSvc.getMapping("viewsource_mapping");
 		// disable built-in swipe gesture
-		window.removeEventListener("MozSwipeGesture", HandleSwipeGesture, true);
+		// [Firefox40-]
+		if ("HandleSwipeGesture" in window)
+			window.removeEventListener("MozSwipeGesture", HandleSwipeGesture, true);
+		// [Firefox41+]
+		if ("ViewSourceChrome" in window)
+			window.removeEventListener("MozSwipeGesture", ViewSourceChrome, true);
 	},
 
 	uninit: function() {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firegestures.git



More information about the Pkg-mozext-commits mailing list