From 5e57ebc0cedf72b846eb9720df73dc7a045cc14a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fiedler?= Date: Sun, 4 Mar 2012 15:02:03 +0000 Subject: [PATCH] "preventing JSHint messages" --- tests/qunit/unit/css.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/qunit/unit/css.js b/tests/qunit/unit/css.js index efb1787..1e75399 100644 --- a/tests/qunit/unit/css.js +++ b/tests/qunit/unit/css.js @@ -1,3 +1,9 @@ +// declare vars (preventing JSHint messages) +var test = test || function(){}, + QUnit = QUnit || {}, + _html2canvas = _html2canvas || {}; + + module("CSS"); $(function() { @@ -113,7 +119,7 @@ $(function() { if ( window.getComputedStyle ) { split = $(el).css(prop).split(" "); } else { - split = [$(el).css(prop+"X"),$(el).css(prop+"Y")] + split = [$(el).css(prop+"X"),$(el).css(prop+"Y")]; } var testEl = $('
').css({