zurb/responsive-tables — pull request #17 by jessevondoom (2013-02-25 23:39:34+00:00)
Title: Adding a "redraw" event to the JS for use with AJAX apps (instead of "load" / "resize")

The "on" syntax is really more stylistic. This is what we did (and tested) in our implementation so I've left it intact here. But the significant it is allowing for a "redraw" event to be handled.

We're using responsive tables on an app that redraws all its pages primarily using AJAX. No new load meant that new tables weren't acting responsively. Rather than an ugly hack we added this one event, allowing us to simply do a $(document).trigger('redraw') call at the end of our AJAX load+redraw function and the tables look pretty — on first load or after an AJAX load. So it all works as originally intended with the extra benefit of being an easy fix for AJAX patterns.