hlp 3.4.4 → 3.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -531,7 +531,7 @@ hlp.outerWidthWithMargin( document.querySelector('.foo') )
531
531
  hlp.outerHeightWithMargin( document.querySelector('.foo') )
532
532
 
533
533
  // get cursor position (without mouse events)
534
- hlp.cursorPosition() // { x: ..., y: ... }
534
+ hlp.cursorPosition().then(pos => { console.log(pos); /* pos: { x: ..., y: ... } */ });
535
535
 
536
536
  // polyfills for ie11
537
537
  hlp.closest( document.querySelector('.children'), '.parent' )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hlp",
3
- "version": "3.4.4",
3
+ "version": "3.4.5",
4
4
  "main": "_js/_build/script.js",
5
5
  "files": [
6
6
  "_js/_build/*.js",