summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jquery.equalheights.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/jquery.equalheights.js b/jquery.equalheights.js
index 561da88..8d4b41f 100644
--- a/jquery.equalheights.js
+++ b/jquery.equalheights.js
@@ -47,10 +47,12 @@
};
// auto-initialize plugin
- $('[data-equal]').each(function(){
- var $this = $(this),
- target = $this.data('equal');
- $this.find(target).equalHeights();
+ $(document).on("ready", function() {
+ $('[data-equal]').each(function(){
+ var $this = $(this),
+ target = $this.data('equal');
+ $this.find(target).equalHeights();
+ });
});
})(jQuery);