From 9ef82d322293e52dea704bc39486942c584d1bae Mon Sep 17 00:00:00 2001 From: Catrope Date: Thu, 16 Aug 2012 16:21:13 -0700 Subject: [PATCH] Remove attributes from DocumentNode constructor 'document' is an unwrapped node type, so a document cannot have attributes in the linear model Change-Id: Ifb0b5a189a65b71925b0fb379bd544d19102ed01 --- modules/ve/dm/nodes/ve.dm.DocumentNode.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/ve/dm/nodes/ve.dm.DocumentNode.js b/modules/ve/dm/nodes/ve.dm.DocumentNode.js index 752798fc49..2fcf9697c2 100644 --- a/modules/ve/dm/nodes/ve.dm.DocumentNode.js +++ b/modules/ve/dm/nodes/ve.dm.DocumentNode.js @@ -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 */