Skip to content

Commit a2434c2

Browse files
authored
67 - replace const with var
Use `var` instead of `const` to prevent `strict` syntax error closes #67
1 parent c4e4c26 commit a2434c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

can-ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ function ajax(o) {
265265
}
266266

267267
if(o.beforeSend){
268-
const result = o.beforeSend.call( o, xhr, o );
268+
var result = o.beforeSend.call( o, xhr, o );
269269
if(canReflect.isPromise(result)) {
270270
result.then(send).catch(deferred.reject);
271271
return promise;

0 commit comments

Comments
 (0)