Permalink
Browse files

Closes #563 Trying first Utils.delay() for Firefox 4, 5 Beta and 6 Au…

…rora . If it gives exception , call Utils.nextTick() for latest Nightlies
  • Loading branch information...
1 parent 448bdbe commit c179ad7881a7eac08c554ee93774f7b8f3c69f0d @grssam grssam committed Jun 17, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 speakWords/bootstrap.js
View
@@ -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));
+ }
});
}

0 comments on commit c179ad7

Please sign in to comment.