Side navigation
#2115 closed bug (duplicate)
Opened January 04, 2008 11:59AM UTC
Closed March 15, 2008 04:39PM UTC
Last modified March 15, 2012 07:13PM UTC
draggable error "$.ui[module] has no properties"
Reported by: | peterbe | Owned by: | john |
---|---|---|---|
Priority: | minor | Milestone: | 1.2.1 |
Component: | ui | Version: | 1.2.1 |
Keywords: | ui | Cc: | |
Blocked by: | Blocking: |
Description
I used the widget on ui.jquery.com to download a jquery-ui.min.js that was generated from only selecting Draggable.
When I deploy this on my site, when the page loads I get this error:
$.ui[module] has no properties [line 8]
Since the file is minified, the first line (line 8) is 722 characters wide so I can't help more than that.
The odd thing is that the draggable is working fine on this page. Just the ugly error.
Perhaps I've misunderstood the documentation in that some other script is supposed to be loaded when all I have also loaded was jquery 1.2.1 min.
Here's possibly an explanation for the eventual solution. I checked out the latest trunk today and tried to break ui/current/tests/draggable.html and see what happens. First of all, I changed all reference to jquery/src/*.js to instead use my prefered jquery-1.2.1.min.js but it continued to work just fine. Long story short, you get the above mentioned error if you change the order so it's like this:
When it should be:
(note: ui.draggable.js is loaded BEFORE ui.draggable.ext.js)
Possibly the generated jquery-ui.min.js from ui.jquery.com suffers from the same error, that ext isn't loaded last?