Skip to content

Commit a81f0b6

Browse files
authored
Update bind-function-to-context.ts
1 parent ed23600 commit a81f0b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TypeScript/bind-function-to-context.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Function.prototype.bindPolyfill = function(obj : any) {
1414
const symbol = Symbol();
1515
obj[symbol] = this;
1616
return (...args) => {
17-
const result = obj[symbol](...args);
18-
delete obj[symbol];
19-
return result;
17+
const result = obj[symbol](...args);
18+
delete obj[symbol];
19+
return result;
2020
}
2121
}

0 commit comments

Comments
 (0)