api/redraw, console check for IE9 compat.
This commit is contained in:
parent
6c6caa1b57
commit
8a4280eb42
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ module.exports = function($window, throttleMock) {
|
||||||
function sync() {
|
function sync() {
|
||||||
if (rendering) throw new Error("Nested m.redraw.sync() call")
|
if (rendering) throw new Error("Nested m.redraw.sync() call")
|
||||||
rendering = true
|
rendering = true
|
||||||
for (var i = 1; i < callbacks.length; i+=2) try {callbacks[i]()} catch (e) {console.error(e)}
|
for (var i = 1; i < callbacks.length; i+=2) try {callbacks[i]()} catch (e) {if (typeof console !== "undefined") console.error(e)}
|
||||||
rendering = false
|
rendering = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue