Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 44d8b9d

Browse files
committed
Fix _store initialization in public method parse()
1 parent 353ffe9 commit 44d8b9d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/UrlParams.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ define(function (require, exports, module) {
4747
p,
4848
self = this;
4949

50+
self._store = {};
51+
5052
if (!url) {
5153
queryString = window.document.location.search.substring(1);
5254
} else if (url.indexOf("?") !== -1) {
@@ -63,8 +65,6 @@ define(function (require, exports, module) {
6365
p[1] = p[1] || "";
6466
self._store[decodeURIComponent(p[0])] = decodeURIComponent(p[1]);
6567
});
66-
} else {
67-
self._store = {};
6868
}
6969
};
7070

0 commit comments

Comments
 (0)