dmotz / oriDomi

🪭 Fold up DOM elements like paper

Home Page:http://oridomi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setting accordion when speed is 0 doesn't work properly

xcoderzach opened this issue · comments

I'm trying to set the accordion value programmatically, but when the speed is zero, it will only set once.

var demo = new OriDomi('.menu', {
  vPanels: 5,
  speed: 0,
  touchEnabled: false
})

demo.accordion(10); //sets correctly
demo.accordion(50); //does nothing, stays at 10

Just pushed up a fix for this. Thanks for pointing it out.

w0000t thanks a ton!