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
ve.debug.js
ve.Document.js
ve.Element.js Toolbar action widgetization and UI refactoring 2013-10-04 16:26:13 -07:00
ve.EventEmitter.js
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.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