mstratman / jQuery-Smart-Wizard

flexible jQuery plug-in that gives wizard like interface
http://mstratman.github.com/jQuery-Smart-Wizard/
303 stars 164 forks source link

Cannot read property 'hasOwnProperty' of undefined #114

Open emilany opened 7 years ago

emilany commented 7 years ago

Hello, currently encountering this error. I am able to see the data from my form loaded but all of them are in one page, and the buttons are nowhere to be found.

Uncaught TypeError: Cannot read property 'hasOwnProperty' of undefined at HTMLDivElement. (jquery.smartWizard.js:462) at Function.each (jquery.min.js:2) at n.fn.init.each (jquery.min.js:2) at n.fn.init.$.fn.smartWizard (jquery.smartWizard.js:457) at init_SmartWizard (custom.min.js:1) at HTMLDocument. (custom.min.js:3) at i (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at Function.ready (jquery.min.js:2) at HTMLDocument.J (jquery.min.js:2)

rtuz2th commented 5 years ago

Same issue here

rtuz2th commented 5 years ago

Okay, the quick and dirty way is to remove this from the jquery.smartWizard.js file:

// show deprecated message for includeFinishButton and reverseButtonsOrder options if(method.hasOwnProperty('includeFinishButton') || method.hasOwnProperty('reverseButtonsOrder')) { console.log("[WARNING] Parameter 'includeFinishButton' and 'reverseButtonsOrder' are " + "deprecated an will be removed in the next release. Use option 'buttonOrder' instead."); }