Skip to content

Commit

Permalink
fix: no longer use es6 let statement (angular#3963)
Browse files Browse the repository at this point in the history
* Currently in Protractor v5 the Angular detection script uses ES6 features like the `let` modifier. 

This can break Protractor on browsers, which doesn't support those statements. 
> See https://saucelabs.com/beta/tests/275f75091dac40a0a3374d29d912caee/commands#11
  • Loading branch information
devversion authored and igniteram committed Feb 21, 2017
1 parent ace1681 commit c35cad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clientsidescripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ functions.waitForAngular = function(rootSelector, callback) {
if (window.angular && !(window.angular.version &&
window.angular.version.major > 1)) {
/* ng1 */
let hooks = getNg1Hooks(rootSelector);
var hooks = getNg1Hooks(rootSelector);
if (hooks.$$testability) {
hooks.$$testability.whenStable(callback);
} else if (hooks.$injector) {
Expand Down

0 comments on commit c35cad3

Please sign in to comment.