summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jquery.matchHeight.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jquery.matchHeight.js b/jquery.matchHeight.js
index 713f70f..f0bbeb8 100644
--- a/jquery.matchHeight.js
+++ b/jquery.matchHeight.js
@@ -135,7 +135,7 @@
// generate groups by their groupId set by elements using data-match-height
$('[data-match-height], [data-mh]').each(function() {
var $this = $(this),
- groupId = $this.attr('data-match-height');
+ groupId = $this.attr('data-match-height') || $this.attr('data-mh');
if (groupId in groups) {
groups[groupId] = groups[groupId].add($this);
} else {
@@ -237,4 +237,4 @@
return parseFloat(value) || 0;
};
-})(jQuery); \ No newline at end of file
+})(jQuery);