mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
console.warn() was failing in IE9 running on Windows7 64bit. changed check to window.console
This commit is contained in:
parent
32e72176ca
commit
b3e7e26248
@ -37,7 +37,7 @@ Kinetic.Global = {
|
|||||||
//shapes hash. rgb keys and shape values
|
//shapes hash. rgb keys and shape values
|
||||||
shapes: {},
|
shapes: {},
|
||||||
warn: function(str) {
|
warn: function(str) {
|
||||||
if(console && console.warn) {
|
if(window.console && console.warn) {
|
||||||
console.warn('Kinetic warning: ' + str);
|
console.warn('Kinetic warning: ' + str);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -4112,7 +4112,7 @@ Test.prototype.tests = {
|
|||||||
layer.add(circle);
|
layer.add(circle);
|
||||||
stage.add(layer);
|
stage.add(layer);
|
||||||
},
|
},
|
||||||
'*NODE - test isListening': function(containerId) {
|
'NODE - test isListening': function(containerId) {
|
||||||
var stage = new Kinetic.Stage({
|
var stage = new Kinetic.Stage({
|
||||||
container: containerId,
|
container: containerId,
|
||||||
width: 578,
|
width: 578,
|
||||||
|
Loading…
Reference in New Issue
Block a user