@kizmann/pico-js 0.4.0 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pico-js.js +1 -1
- package/dist/pico-js.js.map +1 -1
- package/package.json +1 -1
- package/src/element/example.js +1 -1
- package/src/library/data.js +1 -1
- package/src/library/locale.js +1 -1
- package/src/library/route.js +2 -2
- package/src/utility/dom.js +2 -2
package/package.json
CHANGED
package/src/element/example.js
CHANGED
package/src/library/data.js
CHANGED
package/src/library/locale.js
CHANGED
package/src/library/route.js
CHANGED
@@ -2,7 +2,7 @@ import { Obj, Str, Any } from "../index.js";
|
|
2
2
|
|
3
3
|
export default class Route
|
4
4
|
{
|
5
|
-
static routes = Obj.get(
|
5
|
+
static routes = Obj.get(global, '_routes', {});
|
6
6
|
|
7
7
|
static set (key, value)
|
8
8
|
{
|
@@ -22,7 +22,7 @@ export default class Route
|
|
22
22
|
|
23
23
|
static goto (key, values = null, params = null)
|
24
24
|
{
|
25
|
-
|
25
|
+
global.location.href = this.get(key, values, params);
|
26
26
|
}
|
27
27
|
|
28
28
|
}
|
package/src/utility/dom.js
CHANGED
@@ -110,8 +110,8 @@ export class Dom
|
|
110
110
|
|
111
111
|
static title(text = null, glue = ' - ')
|
112
112
|
{
|
113
|
-
document.title =
|
114
|
-
text + glue +
|
113
|
+
document.title = global.baseTitle !== undefined ?
|
114
|
+
text + glue + global.baseTitle : text;
|
115
115
|
|
116
116
|
return this;
|
117
117
|
}
|