omi-finger v0.1.8 - support once config
This commit is contained in:
parent
ebb73be00a
commit
c8f2e311ca
|
@ -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, {
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue