Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 229fd8f

Browse files
committed
fix(zone.js): don't make function declaration in block scope
It's breaks JSC =) Closes #53 Closes #54
1 parent 26a4dc2 commit 229fd8f

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

zone.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -246,23 +246,23 @@ Zone.bindPromiseFn = (function() {
246246
return patchThenable(delegate.apply(this, arguments));
247247
};
248248
};
249+
}
249250

250-
function patchThenable(thenable) {
251-
var then = thenable.then;
252-
thenable.then = function () {
253-
var args = Zone.bindArguments(arguments);
254-
var nextThenable = then.apply(thenable, args);
255-
return patchThenable(nextThenable);
256-
};
251+
function patchThenable(thenable) {
252+
var then = thenable.then;
253+
thenable.then = function () {
254+
var args = Zone.bindArguments(arguments);
255+
var nextThenable = then.apply(thenable, args);
256+
return patchThenable(nextThenable);
257+
};
257258

258-
var ocatch = thenable.catch;
259-
thenable.catch = function () {
260-
var args = Zone.bindArguments(arguments);
261-
var nextThenable = ocatch.apply(thenable, args);
262-
return patchThenable(nextThenable);
263-
};
264-
return thenable;
265-
}
259+
var ocatch = thenable.catch;
260+
thenable.catch = function () {
261+
var args = Zone.bindArguments(arguments);
262+
var nextThenable = ocatch.apply(thenable, args);
263+
return patchThenable(nextThenable);
264+
};
265+
return thenable;
266266
}
267267
}());
268268

0 commit comments

Comments
 (0)