diff options
author | liabru <liabru@brm.io> | 2015-03-31 21:40:02 +0100 |
---|---|---|
committer | liabru <liabru@brm.io> | 2015-03-31 21:40:02 +0100 |
commit | db9996d8a16d23a53605d3aae0fca526cb0b0ecf (patch) | |
tree | 1d08e29df5ca909083c5f703c61f389281d06a9a | |
parent | 290dfcf7fb10382348007cac78871e3e85e46f8e (diff) | |
download | jquery-match-height-db9996d8a16d23a53605d3aae0fca526cb0b0ecf.zip jquery-match-height-db9996d8a16d23a53605d3aae0fca526cb0b0ecf.tar.gz jquery-match-height-db9996d8a16d23a53605d3aae0fca526cb0b0ecf.tar.bz2 |
avoid call to .is when no target specified
-rw-r--r-- | jquery.matchHeight.js | 2 |
1 files changed, 1 insertions, 1 deletions
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;
}
|