Fix resetting of viewDate
The update method will compare viewDate instead of date to correctly reset(or not) the viewDate attribute, viewDate will reset to date on the hide method. Fixes #617
Please fix the tests before we can merge this.
@AuspeXeu here is a refactored fix for the issue #617 my previous "solution" had the side effect of preventing the date to be updated by code, that's why the tests were failing. This solution makes the tests pass without problem, I'm also adding a new test specifically for the setDatesDisabled functionality.
Also the tests were not running properly with the latest version of phamtomjs, which is pulled by travis, so I'm adding a fix for that too.