Open antonywest opened 9 years ago
That's necessarily a gridster bug, that's a general javascript/jquery bug - you probable have something called "thing".defaults that is not defined.
No there is nothing in my html with the class .defaults. The error appears to be coming from jquery.gridster.js
it's not an html class, its a javascript problem. It means somewhere in javascript or jquery you are calling something incorrectly, check for variable typos, or if you are pulling data in with ajax (or something similar) make sure it is actually coming in. It means you have (something) then . then "defaults", so something.defaults where the something is not correctly defined.
Having the same issue
The error appears to be coming from jquery.gridster.js
I would assume it's the "Draggable.defaults" at https://github.com/ducksboard/gridster.js/blob/master/src/jquery.gridster.js#L47, make sure you include jquery draggable.
It helped me to change the order of scripts in html: jquery.draggable.js and other files should be before the jquery.gridster.js
Hello,
I am having this error occur trying to use gridster. What is is this/how can it be fixed?
Uncaught TypeError: Cannot read property 'defaults' of undefined