[TASK] Use strict
This commit is contained in:
parent
d57ce0052a
commit
ae59f75594
36 changed files with 74 additions and 6 deletions
|
@ -1,3 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
define({
|
||||
get: function (url) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
@ -77,7 +79,7 @@ define({
|
|||
},
|
||||
|
||||
listReplace: function (s, subst) {
|
||||
for (key in subst) {
|
||||
for (var key in subst) {
|
||||
var re = new RegExp(key, "g");
|
||||
s = s.replace(re, subst[key]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue