#2115 closed bug (duplicate)
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.
Change History (3)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Owner: | changed from paul to john |
---|
comment:3 Changed 15 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Same problem as #1952.
Note: See
TracTickets for help on using
tickets.
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?