From a2434c26e889c2bc65cf284faf2059ac2a75195a Mon Sep 17 00:00:00 2001 From: Mike 'mitch' Mitchel Date: Mon, 24 Jun 2019 11:04:15 -0500 Subject: [PATCH] 67 - replace `const` with `var` Use `var` instead of `const` to prevent `strict` syntax error closes #67 --- can-ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/can-ajax.js b/can-ajax.js index 5e2d6e7..5787666 100644 --- a/can-ajax.js +++ b/can-ajax.js @@ -265,7 +265,7 @@ function ajax(o) { } if(o.beforeSend){ - const result = o.beforeSend.call( o, xhr, o ); + var result = o.beforeSend.call( o, xhr, o ); if(canReflect.isPromise(result)) { result.then(send).catch(deferred.reject); return promise;