My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 2: DOMWindow - fails to check for existance of "draggable" (line 20)
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by gnoodl, Oct 22, 2008
What steps will reproduce the problem?
1. Don't include the jQuery ui library
2. Launch some DOMWindow code
3. Close the DOMWindow
4. Error is "$("#DOMWindow").draggable is not a function"

What is the expected output? What do you see instead?
Expecting no errors if ui library not loaded. Instead, receive an error
about missing functions.

What version of the product are you using? On what operating system?
Current as of October 23 2008

Please provide any additional information below.
Solution is to implement the following:
19 $('#DOMWindow').fadeOut('fast',function(){
20     if ($.fn.draggable) {
21         $('#DOMWindow').draggable("destroy");
22     }
23     $('#DOMWindow').trigger("unload").remove();
24 });


Sign in to add a comment

Hosted by Google Code