components/tip/index.js
/**
     * Add extra tip trigger handler
     * without overwriting the old ones
     */
Add extra tip trigger handler
without overwriting the old ones
Add extra tip trigger handler without overwriting the old ones
$_addEventHandle(old, fn) {
      if (!old) {
        return fn
      } else if (Array.isArray(old)) {
        return old.indexOf(fn) > -1 ? old : old.concat(fn)
      } else {
        return old === fn ? old : [old, fn]
      }
    }
$_addEventHandle ( old , fn ) { if ( ! old ) { return fn } else if ( Array . isArray ( old ) ) { return old . indexOf ( fn ) > - 1 ? old : old . concat ( fn ) } else { return old === fn ? old : [ old , fn ] } }
Add extra tip trigger handler
 without overwriting the old ones
Add extra tip trigger handler without overwriting the old ones