Manikanths / jquery-ui-map

Automatically exported from code.google.com/p/jquery-ui-map
0 stars 0 forks source link

destroy() function fails when using jQuery Mobile framework #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Include the jquery-ui-map scripts with the jquery mobile framework but 
without jquery-ui scripts
2. create a new instance of gmap()
3. call the destroy() function

What is the expected output? What do you see instead?
Expected for the google map to be emptied and then removed from the DOM. 
Instead a script error is produced: 

TypeError: $.widget.prototype.destroy is undefined
http://localhost/BIG4.Mobile/Scripts/jquery.ui.map.min.js
Line 321

What version of the product are you using? On what operating system?
- jQuery UI Google Map 2.0
- jQuery Mobile 1.0beta1
- Windows 7, Mozilla Firefox 5.0

What other info?
it appears jQuery mobile references the $.Widget (with a capital 'W') but 
jquery ui map references it with a lowercase 'w'

Original issue reported on code.google.com by marcos.j...@gmail.com on 15 Jul 2011 at 6:12

GoogleCodeExporter commented 8 years ago
Do you get the same js error in 2.0.1 or in 2.0.2?
If I remember correctly I fixed something like this and published it.

Original comment by johansalllarsson on 17 Jul 2011 at 6:58

GoogleCodeExporter commented 8 years ago
Ah yes, just updated to 2.02 and this does seem to be resolved.

Many Thanks.

Original comment by marcos.j...@gmail.com on 17 Jul 2011 at 11:31

GoogleCodeExporter commented 8 years ago

Original comment by johansalllarsson on 26 Jul 2011 at 10:51