summaryrefslogtreecommitdiff
path: root/common/content/events.js
diff options
context:
space:
mode:
authorKris Maglione <kris@vimperator.org>2010-08-28 15:47:45 -0400
committerKris Maglione <kris@vimperator.org>2010-08-28 15:47:45 -0400
commit5632e14721897b9e7e23d493f95358bb7df73314 (patch)
treeb4396a45ad85cf910cf18dcd29192bab97d2c1b3 /common/content/events.js
parent0c6a7b178faa4f5d69e6e6098754b2a43305700a (diff)
downloadpentadactyl-5632e14721897b9e7e23d493f95358bb7df73314.tar.gz
Prepare for merge with testing branch.
Diffstat (limited to 'common/content/events.js')
-rw-r--r--common/content/events.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/content/events.js b/common/content/events.js
index 7db54940..574dd3f9 100644
--- a/common/content/events.js
+++ b/common/content/events.js
@@ -288,7 +288,7 @@ const Events = Module("events", {
commandline.quiet = quiet;
try {
- dactyl.threadYield(1, true);
+ util.threadYield(1, true);
for (let [, evt_obj] in Iterator(events.fromString(keys))) {
let elem = dactyl.focus || window.content;
@@ -614,7 +614,7 @@ const Events = Module("events", {
*/
waitForPageLoad: function () {
//dactyl.dump("start waiting in loaded state: " + buffer.loaded);
- dactyl.threadYield(true); // clear queue
+ util.threadYield(true); // clear queue
if (buffer.loaded == 1)
return true;
@@ -624,7 +624,7 @@ const Events = Module("events", {
let end = start + (maxWaitTime * 1000); // maximum time to wait - TODO: add option
let now;
while (now = Date.now(), now < end) {
- dactyl.threadYield();
+ util.threadYield();
//if ((now - start) % 1000 < 10)
// dactyl.dump("waited: " + (now - start) + " ms");
@@ -632,7 +632,7 @@ const Events = Module("events", {
return false;
if (buffer.loaded > 0) {
- dactyl.sleep(250);
+ util.sleep(250);
break;
}
else
@@ -799,7 +799,7 @@ const Events = Module("events", {
let urlbar = document.getElementById("urlbar");
if (elem == null && urlbar && urlbar.inputField == this._lastFocus)
- dactyl.threadYield(true);
+ util.threadYield(true);
if (dactyl.mode & (modes.EMBED | modes.INSERT | modes.TEXTAREA | modes.VISUAL))
modes.reset();
@@ -837,7 +837,7 @@ const Events = Module("events", {
}
if (key == "<C-c>")
- dactyl.interrupted = true;
+ util.interrupted = true;
// feedingKeys needs to be separate from interrupted so
// we can differentiate between a recorded <C-c>