From 8fb844ba82cbe5099a410e53d2569226d13b0e97 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Mon, 16 May 2011 21:03:37 -0400 Subject: [PATCH] src : JSHints; add JSHint options --- jquery.isotope.js | 12 ++++++++++-- jquery.isotope.min.js | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/jquery.isotope.js b/jquery.isotope.js index 30b4ae3..905155a 100644 --- a/jquery.isotope.js +++ b/jquery.isotope.js @@ -9,6 +9,9 @@ * Copyright 2011 David DeSandro / Metafizzy */ +/*jshint forin: false */ +/*global jQuery: true, Modernizr: true */ + (function( window, $, undefined ){ // ========================= getStyleProperty by kangax =============================== @@ -24,7 +27,9 @@ prefixed; // test standard property first - if (typeof style[propName] == 'string') return propName; + if (typeof style[propName] === 'string') { + return propName; + } // capitalize propName = propName.charAt(0).toUpperCase() + propName.slice(1); @@ -32,7 +37,9 @@ // test vendor specific properties for (var i=0, l=prefixes.length; i