Update compile.js

please see this issue https://github.com/angular/angular.js/issues/8355