Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Spinner is not a constructor #6

Closed
jkosir opened this issue Dec 12, 2013 · 5 comments
Closed

Spinner is not a constructor #6

jkosir opened this issue Dec 12, 2013 · 5 comments

Comments

@jkosir
Copy link

jkosir commented Dec 12, 2013

TypeError: Spinner is not a constructor

Using latest from dist, exact copy of ajax form example from http://msurguy.github.io/ladda-bootstrap/

@msurguy
Copy link
Owner

msurguy commented Dec 17, 2013

What browser are you using? Do you have spin.js and spin.min.js in your HTML?

@davidzoli
Copy link

Try to include the spin.js first.

@jkosir
Copy link
Author

jkosir commented Feb 10, 2014

Ugh, I completely forgot about this, ended up not using it.

This was happening in all browsers, and the issue was that ladda.js was included before spin.js.
Swap them and it works. Thanks I guess.

@jkosir jkosir closed this as completed Feb 10, 2014
@paulotruta
Copy link

It would be good to change the readme to say "You will need to include both the spin.min.js and ladda.min.js files" instead of "You will need to include both the spin.min.js and ladda.min.js files"... Should cause less confusion ;)

@dearsina
Copy link

@paulotruta The order matters.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants