diff options
| -rw-r--r-- | background_scripts/completion.coffee | 2 | ||||
| -rw-r--r-- | tests/unit_tests/completion_test.coffee | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index b52d9eb8..23696185 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -43,8 +43,6 @@ class Suggestion """ # Use neat trick to snatch a domain (http://stackoverflow.com/a/8498668). - # TODO(smblott) Is this really faster than using parseUri? That's probably what's happening behind the - # scenes anyway. getUrlRoot: (url) -> a = document.createElement 'a' a.href = url diff --git a/tests/unit_tests/completion_test.coffee b/tests/unit_tests/completion_test.coffee index 02a741d5..811436a9 100644 --- a/tests/unit_tests/completion_test.coffee +++ b/tests/unit_tests/completion_test.coffee @@ -3,6 +3,8 @@ extend(global, require "../../lib/utils.js") extend(global, require "../../background_scripts/completion.js") global.chrome = {} +global.document = + createElement: -> {} context "bookmark completer", setup -> |
