summaryrefslogtreecommitdiffstats
path: root/jquery.equalheights.js
diff options
context:
space:
mode:
Diffstat (limited to 'jquery.equalheights.js')
-rw-r--r--jquery.equalheights.js24
1 files changed, 14 insertions, 10 deletions
diff --git a/jquery.equalheights.js b/jquery.equalheights.js
index 3764e0d..68a2a3e 100644
--- a/jquery.equalheights.js
+++ b/jquery.equalheights.js
@@ -8,13 +8,17 @@
*
* @version 1.0
*/
-$.fn.equalHeights = function() {
- var maxHeight = 0;
- $(this).each(function(index){
- var height = $(this).height();
- if (maxHeight < height) {
- maxHeight = height;
- }
- });
- $(this).height(maxHeight);
-}; \ No newline at end of file
+(function($) {
+
+ $.fn.equalHeights = function() {
+ var maxHeight = 0;
+ $(this).each(function(index){
+ var height = $(this).height();
+ if (maxHeight < height) {
+ maxHeight = height;
+ }
+ });
+ $(this).height(maxHeight);
+ };
+
+})(jQuery); \ No newline at end of file