mediawiki-extensions-Visual.../modules/ve/ce/nodes
Trevor Parscal 7233ea8f1b EventEmitter API cleanup
The EventEmitter API we inherited from Node.js and then bastardized was
getting awkward and cumbersome. The number of uses of ve.bind was getting
out of control, and removing events meant caching the bound method in a
property. Many of the "features" of EventEmitter wasn't even being used,
some causing overhead, others just causing bloat. This change cleans up
how EventEmitter is used throughout the codebase.

The new event emitter API includes:
* emit - identical to the previous API, no longer throws an error if you
  emit error without a handler
* once - identical to the previous API, still introduces a wrapper* on -
  compatible with the previous API but has some new features
* off - identical to removeListener in the previous API
* connect - very similar to addListenerMethods but doesn't wrap callbacks
  in closures anymore
* disconnect - new, basically the opposite of addListenerMethods

Another change that is made in this commit is mixing in rather than
inheriting from EventEmitter.

Finally, there are changes throughout the codebase anywhere
connect/disconnect could be used.

Change-Id: Ic3085d39172a8a719ce7f036690f673e59848d3a
2013-05-02 15:05:59 -07:00
..
ve.ce.AlienNode.js EventEmitter API cleanup 2013-05-02 15:05:59 -07:00
ve.ce.BreakNode.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.ce.CenterNode.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.ce.DefinitionListItemNode.js EventEmitter API cleanup 2013-05-02 15:05:59 -07:00
ve.ce.DefinitionListNode.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.ce.DivNode.js Add support for <div>s as user-editable blocks 2013-04-30 18:43:41 -07:00
ve.ce.DocumentNode.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.ce.GeneratedContentNode.js EventEmitter API cleanup 2013-05-02 15:05:59 -07:00
ve.ce.HeadingNode.js EventEmitter API cleanup 2013-05-02 15:05:59 -07:00
ve.ce.ImageNode.js EventEmitter API cleanup 2013-05-02 15:05:59 -07:00
ve.ce.InternalItemNode.js Add data model support for MediaWiki references 2013-04-23 10:17:42 +01:00
ve.ce.InternalListNode.js Add data model support for MediaWiki references 2013-04-23 10:17:42 +01:00
ve.ce.ListItemNode.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.ce.ListNode.js EventEmitter API cleanup 2013-05-02 15:05:59 -07:00
ve.ce.MWBlockImageNode.js Initial support for MWBlockImageNode - thumb images with captions :-) 2013-04-25 21:49:32 +00:00
ve.ce.MWEntityNode.js EventEmitter API cleanup 2013-05-02 15:05:59 -07:00
ve.ce.MWHeadingNode.js Create MediaWiki specific nodes to contain MW specific rules. 2013-03-12 16:28:29 -07:00
ve.ce.MWImageCaptionNode.js Initial support for MWBlockImageNode - thumb images with captions :-) 2013-04-25 21:49:32 +00:00
ve.ce.MWInlineImageNode.js Rename MWImageNode to MWInlineImageNode (get ready for adding MWBlockImageNode soon) 2013-04-24 16:49:07 -07:00
ve.ce.MWPreformattedNode.js Create MediaWiki specific nodes to contain MW specific rules. 2013-03-12 16:28:29 -07:00
ve.ce.MWReferenceListNode.js EventEmitter API cleanup 2013-05-02 15:05:59 -07:00
ve.ce.MWReferenceNode.js EventEmitter API cleanup 2013-05-02 15:05:59 -07:00
ve.ce.MWTemplateNode.js Add data model support for MediaWiki references 2013-04-23 10:17:42 +01:00
ve.ce.ParagraphNode.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.ce.PreformattedNode.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.ce.TableCaptionNode.js Add TableCaptionNode 2013-04-26 14:09:54 -07:00
ve.ce.TableCellNode.js EventEmitter API cleanup 2013-05-02 15:05:59 -07:00
ve.ce.TableNode.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.ce.TableRowNode.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.ce.TableSectionNode.js EventEmitter API cleanup 2013-05-02 15:05:59 -07:00
ve.ce.TextNode.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00