Browse Source

Ignore exceptions when 827 has been overriden

Thibaut 11 năm trước cách đây
mục cha
commit
99a99d9d71
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      assets/javascripts/app/app.coffee

+ 2 - 1
assets/javascripts/app/app.coffee

@@ -1,5 +1,6 @@
 @app =
   $: $
+  $$: $$
   collections: {}
   models:      {}
   templates:   {}
@@ -142,7 +143,7 @@
   isInjectionError: ->
     # Some browser extensions expect the entire web to use jQuery.
     # I gave up trying to fight back.
-    window.$ isnt app.$
+    window.$ isnt app.$ or window.$$ isnt app.$$
 
   isAppError: (error, file) ->
     # Ignore errors from external scripts.