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

Commit 489da0e

Browse files
committed
escape method has been deprecated
escape method has been deprecated since ECMAScript v3.
1 parent bed85b4 commit 489da0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

forcetk.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ if (forcetk.Client === undefined) {
445445
* @param [error=null] function to which jqXHR will be passed in case of error
446446
*/
447447
forcetk.Client.prototype.query = function(soql, callback, error) {
448-
return this.ajax('/' + this.apiVersion + '/query?q=' + escape(soql)
448+
return this.ajax('/' + this.apiVersion + '/query?q=' + encodeURI(soql)
449449
, callback, error);
450450
}
451451

@@ -481,7 +481,7 @@ if (forcetk.Client === undefined) {
481481
* @param [error=null] function to which jqXHR will be passed in case of error
482482
*/
483483
forcetk.Client.prototype.search = function(sosl, callback, error) {
484-
return this.ajax('/' + this.apiVersion + '/search?q=' + escape(sosl)
484+
return this.ajax('/' + this.apiVersion + '/search?q=' + encodeURI(sosl)
485485
, callback, error);
486486
}
487-
}
487+
}

0 commit comments

Comments
 (0)