Skip to content
Browse files

fixed content script; safari now properly gets events (now just need …

…get the gesture algorithm working better, which we are...)
  • Loading branch information...
1 parent a089989 commit 46b1facd5c7e799de5f900198ba26010564c5bf7 @azinman azinman committed with Mar 5, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 safari-extension-mac/DepthJS.safariextension/content_script/root.js
View
7 safari-extension-mac/DepthJS.safariextension/content_script/root.js
@@ -32,6 +32,7 @@ var DepthJS = {
panner: {},
depthose: {},
browser: {},
+ tabs: {},
MAX_HANDPLANE_WIDTH: 100,
MAX_HANDPLANE_HEIGHT: 100
};
@@ -52,16 +53,16 @@ function print() {
counts[msg.type] = counts[msg.type] + 1;
lastByType[msg.type] = msg.data;
});
-
+
var alphabeticalKeys = _.keys(counts).sort();
console.log("------" + (new Date() + ""));
_.each(alphabeticalKeys, function(type) {
console.log([" " + counts[type] + " " + type + "; last = ", lastByType[type]]);
});
-
+
lastMessages = [];
}
setTimeout(print, 1000);
})();
-}
+}

0 comments on commit 46b1fac

Please sign in to comment.
Something went wrong with that request. Please try again.