1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 00:14:12 +01:00

Merge default.

--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-07 01:09:33 -05:00
parent 9189715e9c
commit 76aaf150fa
5 changed files with 37 additions and 14 deletions

View File

@@ -79,9 +79,11 @@ var ProcessorStack = Class("ProcessorStack", {
Events.kill(this.events[this.events.length - 1]);
if (result === Events.PASS || result === Events.ABORT) {
dbg("REFEED: " + this.events.filter(function (e) e.getPreventDefault()).map(events.closure.toString).join(""));
this.events.filter(function (e) e.getPreventDefault())
.forEach(function (event, i) {
let list = this.events.filter(function (e) e.getPreventDefault());
if (list.length)
events.dbg("REFEED: " + list.map(events.closure.toString).join(""));
list.forEach(function (event, i) {
let elem = event.originalTarget;
if (event.originalTarget) {
let doc = elem.ownerDocument || elem.document || elem;
@@ -307,6 +309,8 @@ var EventHive = Class("EventHive", Group.Hive, {
* @instance events
*/
var Events = Module("events", {
dbg: function () {},
init: function () {
const self = this;