Fixed issue when using $.extend to merge defaultOptions and options
Merge pull request #899 from oadam/master

Fixed issue when using $.extend to merge defaultOptions and options