Bug Tracker

Ticket #2115 (closed bug: duplicate)

Opened 7 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 7 years ago by peterbe

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:

        <script type="text/javascript" src="../../../../jquery-1.2.1.min.js"></script>
        <script type="text/javascript" src="../../../plugins/dimensions/jquery.dimensions.js"></script>
        <script type="text/javascript" src="../ui.mouse.js"></script>
        <script type="text/javascript" src="../ui.draggable.ext.js"></script>
        <script type="text/javascript" src="../ui.draggable.js"></script>

When it should be:

        <script type="text/javascript" src="../../../../jquery-1.2.1.min.js"></script>
        <script type="text/javascript" src="../../../plugins/dimensions/jquery.dimensions.js"></script>
        <script type="text/javascript" src="../ui.mouse.js"></script>
        <script type="text/javascript" src="../ui.draggable.js"></script>
        <script type="text/javascript" src="../ui.draggable.ext.js"></script>

(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?

comment:2 Changed 7 years ago by paul

  • Owner changed from paul to john

comment:3 Changed 7 years ago by scott.gonzal

  • Status changed from new to closed
  • Resolution set to duplicate

Same problem as #1952.

Note: See TracTickets for help on using tickets.