Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Closes #563: Utils.delay is not a function [rs=Mardak]

Trying first Utils.delay() for Firefox 4, 5 Beta and 6 Aurora . If it gives exception , call Utils.nextTick() for latest Nightlies
(cherry picked from commit c179ad7)
  • Loading branch information...
commit 7042acfc7dc27370c2ae3b6b57c88162d94ef2df 1 parent d82a780
@scrapmac scrapmac authored Mardak committed
Showing with 7 additions and 1 deletion.
  1. +7 −1 speakWords/bootstrap.js
View
8 speakWords/bootstrap.js
@@ -144,7 +144,13 @@ function addKeywordSuggestions(window) {
justCompleted = true;
// Make sure the search suggestions show up
- Utils.delay(function() urlBar.controller.startSearch(urlBar.value));
+ // try calling delay() , if fails call nextTick() (For latest Nightlies)
+ try {
+ Utils.delay(function() urlBar.controller.startSearch(urlBar.value));
+ }
+ catch (e) {
+ Utils.nextTick(function() urlBar.controller.startSearch(urlBar.value));
+ }
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.