@kizmann/pico-js 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/pico-js",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
package/src/index.js CHANGED
@@ -85,4 +85,14 @@ if ( typeof global.pi === 'undefined' && global.navigator ) {
85
85
  global.pi = Pico;
86
86
  }
87
87
 
88
+ global.pi.Dom.ready(function () {
89
+
90
+ // Apply dom scroll event
91
+ document.addEventListener("scroll",
92
+ global.pi.Element.scroll);
93
+
94
+ // Apply initial scroll event
95
+ global.pi.Element.scroll();
96
+ });
97
+
88
98
  export default Pico;
@@ -1,15 +1,5 @@
1
1
  import { Str, Obj, Dom, Any, Arr } from "../index.js";
2
2
 
3
-
4
- Dom.ready(() => {
5
-
6
- document.addEventListener("scroll",
7
- Element.scroll);
8
-
9
- Element.scroll();
10
- });
11
-
12
-
13
3
  export class Element
14
4
  {
15
5
  /**