[Xfce4-commits] <midori:master> Get rid of mouse out and remove handlers
Christian Dywan
noreply at xfce.org
Wed Jan 11 00:38:02 CET 2012
Updating branch refs/heads/master
to 4600ea19e66cec0f7a5e71f414ef13beee7155f5 (commit)
from 74ae33e2324543d9f9dcb0e37329b949b6a7cfc0 (commit)
commit 4600ea19e66cec0f7a5e71f414ef13beee7155f5
Author: Paweł Forysiuk <tuxator at o2.pl>
Date: Tue Jan 10 02:25:22 2012 +0100
Get rid of mouse out and remove handlers
data/speeddial-head.html | 22 +++-------------------
1 files changed, 3 insertions(+), 19 deletions(-)
diff --git a/data/speeddial-head.html b/data/speeddial-head.html
index c11b168..053cbc7 100644
--- a/data/speeddial-head.html
+++ b/data/speeddial-head.html
@@ -226,13 +226,7 @@
eparent.className = 'shortcut selected';
firstNode = eparent.id;
}
- out();
- remove();
- };
-
- var remove = function () {
document.RemoveEventListener('click', click, false);
- document.RemoveEventListener('mouseout', out, false);
};
var up = function (ev) {
@@ -248,6 +242,9 @@
};
var over = function (ev) {
+ if (ev == undefined)
+ return;
+
var ele = ev.target;
var eparent = get_dial_div (ele);
@@ -262,18 +259,6 @@
}
ele.style.cursor = cursor;
}
- var out = function (ev) {
- var ele = ev.target;
- var eparent = get_dial_div (ev);
- if (firstNode != undefined) {
- for (var i = 0; i <= dial.length; i++) {
- if (eparent.id != firstNode.id && dial[i].id != eparent.id) {
- dial[i].className = 'shortcut';
- }
- }
- }
- ele.style.cursor = cursor;
- }
function swap () {
console.log ("speed_dial-save-swap " + firstNode + " " + secondNode);
@@ -282,7 +267,6 @@
document.addEventListener('mousedown', click, false);
document.addEventListener('mouseup', up, false);
document.addEventListener('mouseover', over, false);
- document.addEventListener('mouseout', out, false);
</script>
</head>
<body>
More information about the Xfce4-commits
mailing list