mediawiki-extensions-Visual.../modules/ve
Ori Livneh 495f247570 ve.track: add topic-based analytic event subscription
Replace ve.trackRegisterHandler with two methods: ve.trackSubscribe and
ve.trackSubscribeAll. The former takes an additional string argument 'topic',
which specifies a string prefix on which to match event names. The callback is
only called on matching events. The latter, ve.trackSubscribeAll, binds a
handler to all track events, regardless of topic.

This patch simplifies argument-handling by eliminating variadic ve.track calls
in favor of a single object that encodes all event data. The loose coupling of
track event emitters and subscribers makes relying on unnamed positional
argument conventions brittle; property access works better.

Change-Id: I3b58ce0f48ad3c9b56fcaa9c2226cc79bbcd4051
2013-10-16 10:03:27 -07:00
..
ce Merge changes I160e55ad,Idd0592d6,I4d403f1b 2013-10-11 17:30:18 +00:00
dm Stop using ve.isMixedIn() to check if a node is focusable 2013-10-11 16:00:34 +02:00
init Merge "Add abstract method for getMediaSources." 2013-09-24 19:47:43 +00:00
test Prevent deletion of FocusableNodes from a collapsed selection 2013-10-09 17:41:31 +02:00
ui Merge "ve.ce.Surface.getSelectionRect() can return null" 2013-10-11 14:24:10 +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 doc: Clean up spacing that caused <pre> or broken <ul>/<ol> 2013-07-25 04:02:50 +02:00
ve.Element.js Toolbar action widgetization and UI refactoring 2013-10-04 16:26:13 -07:00
ve.EventEmitter.js oojs: Integrate with OOJS v1.0.0 2013-06-06 17:29:55 +02:00
ve.EventSequencer.js Fix initialisation errors in EventSequencer 2013-10-08 00:24:45 +01:00
ve.Factory.js Make ve.Factory require static name property 2013-10-03 14:52:19 -07:00
ve.js Use element.textContent in ve.getDomElementSummary 2013-10-02 15:47:34 +01:00
ve.LeafNode.js
ve.Node.js ve.ce.Document: Introduce getRelativeRange method 2013-06-05 13:10:38 +01:00
ve.Range.js doc: Fix incorrect syntax 2013-09-06 20:29:18 +00:00
ve.Registry.js Make tools generic and add fancy tool groups 2013-09-03 11:27:39 -07:00
ve.track.js ve.track: add topic-based analytic event subscription 2013-10-16 10:03:27 -07:00