Remove attributes from DocumentNode constructor

'document' is an unwrapped node type, so a document cannot have
attributes in the linear model

Change-Id: Ifb0b5a189a65b71925b0fb379bd544d19102ed01
This commit is contained in:
Catrope 2012-08-16 16:21:13 -07:00
parent 5d923e519d
commit 9ef82d3222

View file

@ -12,11 +12,10 @@
* @constructor
* @extends {ve.dm.BranchNode}
* @param {ve.dm.BranchNode[]} [children] Child nodes to attach
* @param {Object} [attributes] Reference to map of attribute key/value pairs
*/
ve.dm.DocumentNode = function ( children, attributes ) {
ve.dm.DocumentNode = function ( children ) {
// Inheritance
ve.dm.BranchNode.call( this, 'document', children, attributes );
ve.dm.BranchNode.call( this, 'document', children );
};
/* Static Members */