fix #2522 Popup position is off when gutter isn't shown

This commit is contained in:
nightwing 2015-05-31 16:48:35 +04:00
commit 446e3e1bf9
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ function warn() {
s.shift(); // remove the getter
s = s.join("\n");
// allow easy access to ace in console, but not in ace code
if (!/at Object.InjectedScript.|@debugger eval|snippets:\/{3}/.test(s)) {
if (!/at Object.InjectedScript.|@debugger eval|snippets:\/{3}|\(<anonymous>:\d+:\d+\)/.test(s)) {
console.error("trying to access to global variable");
}
}