Skip to content

Commit

Permalink
add a fallback for Chrome dev tools strange behavior, #186
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jul 17, 2016
1 parent 34d5d0b commit 82cbb5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/$.iter-detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function(exec, skipClosing){
try {
var arr = [7]
, iter = arr[ITERATOR]();
iter.next = function(){ safe = true; };
iter.next = function(){ return {done: safe = true}; };
arr[ITERATOR] = function(){ return iter; };
exec(arr);
} catch(e){ /* empty */ }
Expand Down

0 comments on commit 82cbb5a

Please sign in to comment.