Skip to content

Commit

Permalink
avoid call to .is when no target specified
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Mar 31, 2015
1 parent 290dfcf commit db9996d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.matchHeight.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit db9996d

Please sign in to comment.