jyoungblood / smoke.js

framework-agnostic styled alert system for javascript
http://smoke.js.org/
930 stars 107 forks source link

Quiz is not limited to 3 buttons #58

Open mattlockyer opened 8 years ago

mattlockyer commented 8 years ago

I found this bug incredibly annoying since the docs demonstrate 4 options. Using a loop should be more efficient and provide unlimited quiz options for the client.

mattlockyer commented 8 years ago

Changed quiz button builder code to use while loop if buttons exist in the format: 'button_' + i

Falseclock commented 7 years ago

https://github.com/hxgf/smoke.js/pull/64/commits/61d8749cb0af42b2fb41753ef60aaa963d46bd72

more universal solution