Patched Angular based on https://github.com/angular/angular.js/commit/a0932aee35ea5251e58c2f17fe8647a9943ceba8