Javascript-Equal-Height-Responsive-Rows
Javascript-Equal-Height-Responsive-Rows copied to clipboard
Added callback
Sometimes the grid isn't created ok, so I added a callback to invoke a function to correct the grid without resizing, I use as follows:
$('.element').responsiveEqualHeightGrid(function(){$(window).resize();});
Cheers!
The patch needs to check if "callback" is undefined for people who do not pass in the callback.
How about that?
Doesn't match coding standards for the rest of the project (need brackets around if statement, space after the "if", 4 space indentation)
"use strict" will throw an error due to non strict check, eg, need to use "!==".
Also, what is the difference between passing a callback in vs calling the plugin then calling a function straight after?