mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +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: {},
|
||||
warn: function(str) {
|
||||
if(console && console.warn) {
|
||||
if(window.console && console.warn) {
|
||||
console.warn('Kinetic warning: ' + str);
|
||||
}
|
||||
},
|
||||
|
@ -4112,7 +4112,7 @@ Test.prototype.tests = {
|
||||
layer.add(circle);
|
||||
stage.add(layer);
|
||||
},
|
||||
'*NODE - test isListening': function(containerId) {
|
||||
'NODE - test isListening': function(containerId) {
|
||||
var stage = new Kinetic.Stage({
|
||||
container: containerId,
|
||||
width: 578,
|
||||
|
Loading…
Reference in New Issue
Block a user