From db9996d8a16d23a53605d3aae0fca526cb0b0ecf Mon Sep 17 00:00:00 2001 From: liabru Date: Tue, 31 Mar 2015 21:40:02 +0100 Subject: [PATCH] avoid call to .is when no target specified --- jquery.matchHeight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.matchHeight.js b/jquery.matchHeight.js index 552cf5f..1f7036a 100644 --- a/jquery.matchHeight.js +++ b/jquery.matchHeight.js @@ -236,7 +236,7 @@ verticalPadding = 0; // don't apply to a target - if ($that.is(opts.target)) { + if (opts.target && $that.is(opts.target)) { return; }