@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/dist/pico-js.js +1 -1
- package/dist/pico-js.js.map +1 -1
- package/package.json +1 -1
- package/src/index.js +10 -0
- package/src/library/element.js +0 -10
package/package.json
CHANGED
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;
|