From 9d99cdbb671b946c4913fb1d6f643ae2467a00e6 Mon Sep 17 00:00:00 2001 From: Catrope Date: Fri, 10 May 2013 17:02:07 -0700 Subject: [PATCH] Fix breaking getLength() call Change-Id: Iaa6cb22bf93a677aff077ce38ee11e606430cee5 --- modules/ve/dm/ve.dm.MetaList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve/dm/ve.dm.MetaList.js b/modules/ve/dm/ve.dm.MetaList.js index 962516963d..858c7d3f5c 100644 --- a/modules/ve/dm/ve.dm.MetaList.js +++ b/modules/ve/dm/ve.dm.MetaList.js @@ -260,7 +260,7 @@ ve.dm.MetaList.prototype.insertMeta = function ( meta, offset, index ) { meta = meta.getElement(); } if ( offset === undefined ) { - offset = this.document.getLength(); + offset = this.document.data.getLength(); index = 0; } else if ( index === undefined ) { index = ( this.document.metadata.getData( offset ) || [] ).length;