omi-finger v0.1.8 - support once config

This commit is contained in:
dntzhang 2017-07-10 17:46:25 +08:00
parent ebb73be00a
commit c8f2e311ca
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*!
* omi-finger v0.1.7 by dntzhang
* omi-finger v0.1.8 by dntzhang
* Omi / AlloyFinger integration. Support touch and gesture events in your Omi project.
* Github: https://github.com/AlloyTeam/omi
* MIT Licensed.
@ -32,7 +32,11 @@
OmiFinger.init = function(){
Omi.extendPlugin('omi-finger',function(dom, instance){
if(dom.alloyFinger) {
dom.alloyFinger.destroy()
if (dom.getAttribute('once') !== null) {
return
} else {
dom.alloyFinger.destroy()
}
}
var alloyFinger = new AlloyFinger(dom, {

View File

@ -1,6 +1,6 @@
{
"name": "omi-finger",
"version": "0.1.7",
"version": "0.1.8",
"description": "AlloyFinger / Omi integration. Support touch and gesture events in your Omi project. ",
"main": "index.js",
"scripts": {