Skip to content

Commit 75e99f3

Browse files
author
Ralph Holzmann
committed
Context fix for util/function.
1 parent 6475dd8 commit 75e99f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

util/function/function.js

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ steal("can/util", function() {
99
return function() {
1010

1111
var args = arguments;
12+
13+
context = context || this;
1214

1315
clearTimeout( timeout );
1416
timeout = setTimeout(function() {
@@ -26,6 +28,8 @@ steal("can/util", function() {
2628

2729
var args = arguments;
2830

31+
context = context || this;
32+
2933
if ( ! run ) {
3034
run = true;
3135
setTimeout(function() {

0 commit comments

Comments
 (0)