1
0
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:
Eric Rowell 2012-11-04 08:07:09 -08:00
parent 32e72176ca
commit b3e7e26248
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
},

View File

@ -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,