Patch for issue 46

https://github.com/michaelbromley/angularUtils/issues/46