[the-board] [ui] Get rid of useless separate method for sliding tweens
- From: Lucas Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [the-board] [ui] Get rid of useless separate method for sliding tweens
- Date: Tue, 22 Feb 2011 23:35:49 +0000 (UTC)
commit 091b9a915cf96f433f6dd49bf8321bfb5757bdfe
Author: Lucas Rocha <lucasr gnome org>
Date: Tue Feb 22 22:30:02 2011 +0000
[ui] Get rid of useless separate method for sliding tweens
src/js/ui/toolbar.js | 30 ++++++++++++------------------
1 files changed, 12 insertions(+), 18 deletions(-)
---
diff --git a/src/js/ui/toolbar.js b/src/js/ui/toolbar.js
index d49ab6e..33734b7 100644
--- a/src/js/ui/toolbar.js
+++ b/src/js/ui/toolbar.js
@@ -114,22 +114,6 @@ Toolbar.prototype = {
this.emit("active-changed");
},
- _showToolBoxes : function(onComplete) {
- Tweener.addTween(this._mainBox,
- { anchorY: 0,
- time: _SHOW_TIME,
- transition: _SHOW_TRANSITION,
- onComplete: onComplete });
- },
-
- _hideToolBoxes : function(onComplete) {
- Tweener.addTween(this._mainBox,
- { anchorY: _TOOLBOX_ANCHOR_Y,
- time: _HIDE_TIME,
- transition: _HIDE_TRANSITION,
- onComplete: onComplete });
- },
-
_destroyAllToolBoxes : function() {
while (this._toolBoxes.length > 0) {
let toolBox = this._toolBoxes[0];
@@ -191,7 +175,12 @@ Toolbar.prototype = {
}
this._visible = true;
- this._showToolBoxes(onComplete);
+
+ Tweener.addTween(this._mainBox,
+ { anchorY: 0,
+ time: _SHOW_TIME,
+ transition: _SHOW_TRANSITION,
+ onComplete: onComplete });
},
slideOut : function(onComplete) {
@@ -200,7 +189,12 @@ Toolbar.prototype = {
}
this._visible = false;
- this._hideToolBoxes(onComplete);
+
+ Tweener.addTween(this._mainBox,
+ { anchorY: _TOOLBOX_ANCHOR_Y,
+ time: _HIDE_TIME,
+ transition: _HIDE_TRANSITION,
+ onComplete: onComplete });
},
destroy : function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]