mediawiki-extensions-Visual.../modules/ve
Roan Kattouw febc0f567f Defer selection-triggered updates in ve.ui.Context
Move selection change handling (closing the popup if open, and updating
the context toolbar) to .afterChange(). Every time .onChange() detects
a selection change, it schedules a call to afterChange(). These calls
are batched so that multiple selection changes in the same tick cause
afterChange() to be called only once.

Deferring these updates causes them to no longer occur while a 'change'
event is being emitted. This means that if an inspectors' close handler
calls .change(), that call is now no longer nested inside another
.change() call and doesn't run afoul of any render locks set by the
caller of the outer .change().

Bug: 54675
Change-Id: Iae2f41a83b5d64251a54e42303100e84a5c25561
2013-10-23 15:12:47 +00:00
..
ce Merge "Fix typo in documentation for ve.ce.View.prototype.getModel" 2013-10-23 13:45:26 +00:00
dm Remove simpleArray utilities from ve.js and use oojs instead 2013-10-23 03:26:53 +02:00
init Use OO.EventEmitter instead of ve.EventEmitter 2013-10-22 16:57:33 +00:00
test Rename oo.js to oojs.js per library name 2013-10-22 19:18:32 +00:00
ui Defer selection-triggered updates in ve.ui.Context 2013-10-23 15:12:47 +00:00
ve.BranchNode.js Kill getOffsetFromNode() with fire 2013-05-09 17:26:22 -07:00
ve.debug.js ve.debug: Document why we use global Function#apply+Function#call instead of method.apply 2013-05-30 13:03:14 +01:00
ve.Document.js Use OO.EventEmitter instead of ve.EventEmitter 2013-10-22 16:57:33 +00:00
ve.Element.js Toolbar action widgetization and UI refactoring 2013-10-04 16:26:13 -07:00
ve.EventSequencer.js Fix initialisation errors in EventSequencer 2013-10-08 00:24:45 +01:00
ve.js Remove simpleArray utilities from ve.js and use oojs instead 2013-10-23 03:26:53 +02:00
ve.LeafNode.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.Node.js Rename @emits to @fires so we're forward compatible with JSDuck 5 2013-10-22 19:11:16 +00:00
ve.Range.js doc: Fix incorrect syntax 2013-09-06 20:29:18 +00:00
ve.track.js ve.track: add topic-based analytic event subscription 2013-10-16 10:03:27 -07:00