From fe745220d56b6b648d3851dda590fcac09768680 Mon Sep 17 00:00:00 2001 From: "M. en C. Carlos Genaro" Date: Thu, 22 Jan 2015 17:57:27 -0600 Subject: [PATCH 1/2] Added callback --- grids.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grids.js b/grids.js index b94bbc0..c26c08f 100644 --- a/grids.js +++ b/grids.js @@ -61,7 +61,7 @@ /** * Ensure equal heights now, on ready, load and resize. */ - $.fn.responsiveEqualHeightGrid = function() { + $.fn.responsiveEqualHeightGrid = function(callback) { var _this = this; function syncHeights() { @@ -70,6 +70,7 @@ } $(window).bind('resize load', syncHeights); syncHeights(); + callback(); return this; }; From b23afd3622c03a8eee7478e10fc313af41ba3983 Mon Sep 17 00:00:00 2001 From: "M. en C. Carlos Genaro" Date: Tue, 27 Jan 2015 19:56:01 -0600 Subject: [PATCH 2/2] Adding callback check --- grids.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grids.js b/grids.js index c26c08f..06ca2b6 100644 --- a/grids.js +++ b/grids.js @@ -70,7 +70,7 @@ } $(window).bind('resize load', syncHeights); syncHeights(); - callback(); + if(typeof callback!="undefined") callback(); return this; };