From b3e7e26248ec3a2d86653bf567aaa92c2b3523ac Mon Sep 17 00:00:00 2001 From: Eric Rowell Date: Sun, 4 Nov 2012 08:07:09 -0800 Subject: [PATCH] console.warn() was failing in IE9 running on Windows7 64bit. changed check to window.console --- src/Global.js | 2 +- tests/js/unitTests.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Global.js b/src/Global.js index 276dfa69..309ca956 100644 --- a/src/Global.js +++ b/src/Global.js @@ -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); } }, diff --git a/tests/js/unitTests.js b/tests/js/unitTests.js index 2425b907..a29303b2 100644 --- a/tests/js/unitTests.js +++ b/tests/js/unitTests.js @@ -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,