dmotz / oriDomi

🪭 Fold up DOM elements like paper
https://oxism.com/oriDomi
MIT License
2.41k stars 207 forks source link

setting accordion when speed is 0 doesn't work properly #21

Closed xcoderzach closed 10 years ago

xcoderzach commented 10 years ago

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
dmotz commented 10 years ago

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

xcoderzach commented 10 years ago

w0000t thanks a ton!