This website requires JavaScript.
Explore
Help
Register
Sign In
wikimedia
/
mediawiki-extensions-VisualEditor
Watch
1
Star
0
Fork
You've already forked mediawiki-extensions-VisualEditor
0
mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced
2024-11-16 10:59:56 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
fb9f6e0a3b
mediawiki-extensions-Visual...
/
modules
/
ve2
/
ve.LeafNode.js
11 lines
109 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Initial commit of data model rewrite Ground-up rewrite of the data model. Putting this in the ve2 directory for now so we still have the old code floating around. Main changes so far in this rewrite: * Renamed hasChildren() to canHaveChildren() * Added canHaveGrandchildren() * Added a new node type TwigNode that can have children but not grandchildren (so all of its children must be LeafNodes) * Implemented push/pop/shift/unshift as wrappers around splice() * Renamed getElementType() to getType(). Nodes now take a string as a type, and the element stuff is gone and won't be back * Removed clearRoot(), replaced it with setRoot( this ) where needed Change-Id: I23f3bb1b4a2473575e5446e87fdf17af107bacf6
2012-04-19 20:54:34 +00:00
/
*
*
*
Mixin
for
leaf
nodes
*
*
@
class
*
@
abstract
*
@
constructor
*
/
ve
.
LeafNode
=
function
(
)
{
//
}
;
Reference in a new issue
Copy permalink