trentrichardson / jQuery-Impromptu

An extention to help provide a more pleasant way to spontaneously prompt a user for input.
http://trentrichardson.com/Impromptu/
MIT License
327 stars 144 forks source link

Reproducable error: Uncaught TypeError: Cannot read property 'length' of undefined #40

Closed SGE00 closed 10 years ago

SGE00 commented 10 years ago

Hi, I just try to use you library but I discovered following error:

Uncaught TypeError: Cannot read property 'length' of undefined

when using your bootstrap example. The error also exsits on you website. Do as follows:

1) Goto http://trentrichardson.com/Impromptu/demos/twitter_bootstrap.html 2) Click on Test Impromptu States Survey link 3) Click on the Cancel button 4) Click again on the Test Impromptu States Survey link 5) The box is empty and above error is generated (I'm using latest version of Chrome).

Can you fix this ?

trentrichardson commented 10 years ago

I am able to reproduce as well. I will have a look at what is happening here.

trentrichardson commented 10 years ago

The error should be gone with the latest in the dev branch. The commit listed above didn't fix the issue, it was actually in the examples. I fixed those in the next commit but forgot to reference this issue in the commit message:

https://github.com/trentrichardson/jQuery-Impromptu/commit/8e79271360bc83f78765850f1a134c79a16be1c3