Move check to see if resizable is enabled before event

Was throwing error because it was trying to set resizable options
without it actually being enabled

fixes #54
Merge pull request #55 from jdewit/fix/resize-check

Move check to see if resizable is enabled before event