ericmmartin/simplemodal — pull request #15 by yellis (2012-10-11 07:59:57+00:00)
Title: Update getDimensions function to ensure that w[] has non-zero values

Ran into a bug using simplemodal on IE9 where wndw.Width() and .height() as used in the getDimensions function returned zero. This resulted in top/left being set to the wrong numbers, modal being off-center. Corrected by checking in getDimensions that values are > 0 before initializing the w[] array with them.