mediawiki-extensions-Visual.../modules
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
..
jquery Removed code for and links to unused libraries 2013-01-10 13:25:33 -08:00
qunit Upstream: Update QUnit from v1.10.0 to v1.11.0 2013-02-19 19:50:02 +01:00
rangy Updated rangy from 1.2.2 to 1.3alpha.772 2013-04-17 23:03:26 +00:00
unicodejs Implement next/prevBreakOffset and word skipping 2013-04-09 21:55:57 +00:00
ve Fix ve.ui.get$$'s handling of jQuery selection 2013-04-22 20:36:42 +00:00