builtbywill / booklet

jQuery Plugin - display web content in a flipbook
http://builtbywill.com/booklet
Other
292 stars 109 forks source link

Jquery 1.8.2 and Error... #6

Closed Deltafox79 closed 11 years ago

Deltafox79 commented 12 years ago

I have this Error on first call function booklet..

error: cannot call methods on draggable prior to initialization; attempted to call method 'destroy'

I have fix in this way :

Find :

aH.find(".b-page").draggable("destroy").removeClass("b-grab b-grabbing");

Change whit:

if(aH.find(".b-page").data('draggable')) aH.find(".b-page").draggable("destroy");aH.find(".b-page").removeClass("b-grab b-grabbing");

Regards

nickelodeon commented 11 years ago

This was helpful. Thanks :)

vladkras commented 11 years ago

This helped me to fix this provlem with latest jQuery UI 1.9.2

But Booklet worked correctly with JQuery 1.8.2 and jQuery UI 1.8.21

builtbywill commented 11 years ago

I believe I have fixed this issue with commit ca1c066 in the development branch. Please check it out.

Best, Will

rahul75 commented 11 years ago

thank all specially @vladkras i resolve this problem by changing the jquery version