From 142751b41283673b41164a4e48e33e7cd7f0dd59 Mon Sep 17 00:00:00 2001 From: MoyuScript 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({