mediawiki-extensions-Visual.../modules/ve/ui
Trevor Parscal 3bcac07aab Fix ve.ui.get$$'s handling of jQuery selection
Turns out, the context property of a jQuery selection isn't always
there.

For example:

$( 'body' ).context === document
$( '<div>' ).context === undefined

Even if you later attach that div, so long as you have the old
selection around, the cached `context` property won't magically be
updated. This makes sense (although it's poorly documented in the
jQuery API) but causes issues for us, and pretty much makes the
context property useless.

Instead, we can just use the standard `ownerDocument` property,
available on all DOM elements.

This change also add support for passing in a DOM element directly, in
addition to the existing support of passing jQuery or Document objects
in.

Change-Id: Ib8a31b74f2a4f455b1318be9f5c7805a2a193c79
2013-04-22 20:36:42 +00:00
..
dialogs UI "Views" refactor 2013-04-18 15:53:50 -07:00
elements Stack panel, element mixins, cleanup 2013-03-28 12:40:01 -07:00
inspectors The resurrection 2013-04-22 12:50:23 +01:00
layouts Stack panel, element mixins, cleanup 2013-03-28 12:40:01 -07:00
styles Dialog button changes 2013-04-10 12:34:52 -07:00
tools UI "Views" refactor 2013-04-18 15:53:50 -07:00
widgets ve.ui.SelectWidget: Keep track of mouse down 2013-04-17 11:40:16 +00:00
ve.ui.Context.js The resurrection 2013-04-22 12:50:23 +01:00
ve.ui.Dialog.js Dialog button changes 2013-04-10 12:34:52 -07:00
ve.ui.DialogFactory.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.Element.js Doc: Replace "@property @type {Type}" with "@property {Type}". 2013-03-28 21:21:56 +01:00
ve.ui.Frame.js Merge "Initialize iframe for dialog with correct doctype" 2013-04-19 18:53:12 +00:00
ve.ui.Inspector.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.InspectorFactory.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.js Fix ve.ui.get$$'s handling of jQuery selection 2013-04-22 20:36:42 +00:00
ve.ui.Layout.js Layouts, grids and panels 2013-03-15 15:12:56 -07:00
ve.ui.Tool.js Doc: Replace "@property @type {Type}" with "@property {Type}". 2013-03-28 21:21:56 +01:00
ve.ui.Toolbar.js The resurrection 2013-04-22 12:50:23 +01:00
ve.ui.ToolFactory.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.ui.ViewRegistry.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.Widget.js Layouts, grids and panels 2013-03-15 15:12:56 -07:00
ve.ui.Window.js Dialog button changes 2013-04-10 12:34:52 -07:00
ve.ui.WindowSet.js No more confusing boolean argument for closing windows 2013-04-10 12:31:49 -07:00