unreach-util
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -1,4 +0,1 @@ | ||
import ready from 'domready'; | ||
const DOCUMENT_NODE_TYPE = 9; | ||
@@ -18,6 +15,3 @@ | ||
ready(init); | ||
function init() { | ||
export function trackReady() { | ||
delegate(document.body, 'click', '[data-track]', e => { | ||
@@ -71,3 +65,3 @@ const el = e.delegateTarget; | ||
export default function trackAction(category, action = 'click', label = null, value = null) { | ||
export function trackAction(category, action = 'click', label = null, value = null) { | ||
window._hmt && window._hmt.push(['_trackEvent', category, action, label, value]); // eslint-disable-line | ||
@@ -74,0 +68,0 @@ } |
{ | ||
"name": "unreach-util", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"description": "前端工具基础库", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
16123
518