Skip to content

Commit b4326d3

Browse files
committed
early out on options parser
1 parent 6c7e6ad commit b4326d3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

jquery.matchHeight.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,12 @@
7373
};
7474

7575
if (typeof options === 'object') {
76-
opts = $.extend(opts, options);
76+
return $.extend(opts, options);
7777
}
7878

7979
if (typeof options === 'boolean') {
8080
opts.byRow = options;
81-
}
82-
83-
if (options === 'remove') {
81+
} else if (options === 'remove') {
8482
opts.remove = true;
8583
}
8684

0 commit comments

Comments
 (0)