Skip to main content

Search and Top Navigation

#10072 closed bug (fixed)

Opened May 27, 2014 06:38PM UTC

Closed May 27, 2014 08:16PM UTC

Last modified May 27, 2014 08:21PM UTC

Dialog test fails with jQuery 1.6 on "TypeError: undefined off() is not a function"

Reported by: Krinkle Owned by:
Priority: minor Milestone: 1.11.0
Component: ui.dialog Version: git (not yet released)
Keywords: Cc:
Blocked by: Blocking:
Description

Dialog tests fail unconditionally in all browsers with jQuery 1.6.

TestSwarm:

Test 10. dialog: core: #7960: resizable handles below modal overlays (2, 1, 3) 23 ms

Resizable handles have lower z-index than modal overlay
Died on test #2     at /tests/unit/dialog/dialog_core.js:128:1
    at /tests/unit/dialog/dialog_core.js:231:3: undefined is not a function
Source:     
TypeError: undefined is not a function
    at $.widget._destroyOverlay (/ui/dialog.js:846:7)
    at null._destroyOverlay (/ui/widget.js:108:25)
    at $.widget._destroy (/ui/dialog.js:153:8)
    at null._destroy (/ui/widget.js:108:25)
    at $.Widget.destroy (/ui/widget.js:286:8)
    at HTMLDivElement.<anonymous> (/ui/widget.js:206:39)
    at Function.jQuery.extend.each (/tests/jquery-1.6.js:641:20)
    at jQuery.fn.jQuery.each (/tests/jquery-1.6.js:265:17)
    at $.fn.(anonymous function) [as dialog] (/ui/widget.js:192:9)
    at Object.<anonymous> (/tests/unit/dialog/dialog_core.js:137:9)
Expected 1 assertions, but 2 were run
Source:     
    at /tests/unit/dialog/dialog_core.js:128:1
    at /tests/unit/dialog/dialog_core.js:231:3
Attachments (0)
Change History (2)

Changed May 27, 2014 08:16PM UTC by Timo Tijhof comment:1

resolution: → fixed
status: newclosed

Dialog: Fix off() -> unbind() for jQuery 1.6 compat

Follows-up c9815f13b487d027ef9b.

Fixes #10072

Closes gh-1256

Changeset: 6c4005280d5f5b49de382e7e4992c1778f541f6c

Changed May 27, 2014 08:21PM UTC by tj.vantoll comment:2

milestone: none1.11.0