diff --git a/src/jquery.columnizer.js b/src/jquery.columnizer.js index ad75643..de7301b 100644 --- a/src/jquery.columnizer.js +++ b/src/jquery.columnizer.js @@ -53,6 +53,15 @@ var $inBox = options.target ? $(options.target) : $(this); var maxHeight = $(this).height(); var $cache = $('
'); // this is where we'll put the real content + + $inBox.data("options", options); + $inBox.data("cache", $cache); + $inBox.bind("columnize", function() { + lastWidth = 0; + $inBox.data("columnized", false); + columnizeIt(); + }); + var lastWidth = 0; var columnizing = false; var manualBreaks = options.manualBreaks;