fixed issue with the 'this' context in functions
Merge branch 'master' of https://github.com/swelham/sails-modit