Unified · Split
| @@ -1,6 +1,7 @@ | ||
| 1 | 1 | @app = |
| 2 | − $: $ | |
| 3 | − $$: $$ | |
| 2 | + _$: $ | |
| 3 | + _$$: $$ | |
| 4 | + _page: page | |
| 4 | 5 | collections: {} |
| 5 | 6 | models: {} |
| 6 | 7 | templates: {} |
| @@ -53,7 +54,7 @@ · 46 unmodified lines | ||
| 53 | 54 | Raven.config @config.sentry_dsn, |
| 54 | 55 | whitelistUrls: [/devdocs/] |
| 55 | 56 | includePaths: [/devdocs/] |
| 56 | − ignoreErrors: [/dpQuery/, /NPObject/] | |
| 57 | + ignoreErrors: [/dpQuery/, /NPObject/, /NS_ERROR/, /^null$/] | |
| 57 | 58 | tags: |
| 58 | 59 | mode: if @DOC then 'single' else 'full' |
| 59 | 60 | iframe: (window.top isnt window).toString() |
| @@ -163,6 +164,8 @@ · 103 unmodified lines | ||
| 163 | 164 | return |
| 164 | 165 | |
| 165 | 166 | onQuotaExceeded: -> |
| 167 | + return if @quotaExceeded | |
| 168 | + @quotaExceeded = true | |
| 166 | 169 | new app.views.Notif 'QuotaExceeded', autoHide: null |
| 167 | 170 | Raven.captureMessage 'QuotaExceededError' |
| 168 | 171 | |
| @@ -188,7 +191,7 @@ · 19 unmodified lines | ||
| 188 | 191 | isInjectionError: -> |
| 189 | 192 | # Some browser extensions expect the entire web to use jQuery. |
| 190 | 193 | # I gave up trying to fight back. |
| 191 | − window.$ isnt app.$ or window.$$ isnt app.$$ | |
| 194 | + window.$ isnt app._$ or window.$$ isnt app._$$ or window.page isnt app._page | |
| 192 | 195 | |
| 193 | 196 | isAppError: (error, file) -> |
| 194 | 197 | # Ignore errors from external scripts. |