[Pkg-mozext-commits] [firegestures] 06/18: clean up codes

David Prévot taffit at moszumanska.debian.org
Sat May 23 10:58:41 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 e658cb57ec1bce0d375c5e04b4f9407ea33bd3a5
Author: Gomita <gomita at xuldev.org>
Date:   Sat May 16 00:21:41 2015 +0900

    clean up codes
---
 components/xdGestureHandler.js | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/components/xdGestureHandler.js b/components/xdGestureHandler.js
index 90fd6a1..39aeb0a 100644
--- a/components/xdGestureHandler.js
+++ b/components/xdGestureHandler.js
@@ -485,7 +485,7 @@ xdGestureHandler.prototype = {
 		this._shouldFireContext = false;
 		// trail drawing
 		if (!this._swipeTimer && this._trailEnabled)
-			this.createTrail(event);
+			this._createTrail();
 		// [e10s] tell remote browser that mouse gesture has started
 		if (this._isRemote) {
 			this._gestureObserver.sendAsyncMessage("FireGestures:GestureStart", {
@@ -514,7 +514,7 @@ xdGestureHandler.prototype = {
 			direction = y < this._lastY ? "U" : "D";
 		// trail drawing
 		if (this._trailEnabled)
-			this.drawTrail(this._lastX, this._lastY, x, y);
+			this._drawTrail(this._lastX, this._lastY, x, y);
 		// remember the current position
 		this._lastX = x;
 		this._lastY = y;
@@ -541,7 +541,7 @@ xdGestureHandler.prototype = {
 		}
 		// clear trail drawing when invoking extra gesture except keypress gesture
 		if (this._state != STATE_KEYPRESS && this._trailEnabled)
-			this.eraseTrail();
+			this._eraseTrail();
 		// Fixed bug: FireGestures.sourceNode is null when doing rocker-right
 		if (!this.sourceNode)
 			this.sourceNode = event.target;
@@ -566,7 +566,7 @@ xdGestureHandler.prototype = {
 		this._clearTimeout();
 		// clear trail drawing
 		if (!this._swipeTimer && this._trailEnabled)
-			this.eraseTrail();
+			this._eraseTrail();
 		// don't call onMouseGesture after events sequence: mousedown > minimal mousemove > mouseup
 		if (this._directionChain) {
 			this._gestureObserver.onMouseGesture(event, this._directionChain);
@@ -653,7 +653,7 @@ xdGestureHandler.prototype = {
 	_trailOffsetY: 0,
 
 	// called from _startGesture
-	createTrail: function FGH_createTrail(event) {
+	_createTrail: function FGH__createTrail() {
 		if (this._trailArea) {
 			this._trailArea.style.display = "-moz-box";
 			return;
@@ -692,7 +692,7 @@ xdGestureHandler.prototype = {
 	},
 
 	// called from _progressGesture
-	drawTrail: function FGH_drawTrail(x1, y1, x2, y2) {
+	_drawTrail: function FGH__drawTrail(x1, y1, x2, y2) {
 		if (!this._trailArea)
 			return;
 		var context = this._trailContext;
@@ -706,8 +706,8 @@ xdGestureHandler.prototype = {
 		context.stroke();
 	},
 
-	// called from _stopGesture
-	eraseTrail: function FGH_eraseTrail() {
+	// called from _stopGesture, _invokeExtraGesture
+	_eraseTrail: function FGH__eraseTrail() {
 		if (!this._trailArea)
 			return;
 		var canvas = this._trailArea.firstChild;

-- 
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