From 3a48860602898c1a53e9eeae82a810cecefe39d9 Mon Sep 17 00:00:00 2001 From: Rob Moen Date: Mon, 1 Oct 2012 16:27:56 -0700 Subject: [PATCH] Fix transaction bug with Roans help. Fixes (Bug 40339) Change-Id: Ice26bf08071cba5c5500aa9196ade169381a9aea --- modules/ve/dm/ve.dm.Transaction.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ve/dm/ve.dm.Transaction.js b/modules/ve/dm/ve.dm.Transaction.js index 36976204df..965f4d8d62 100644 --- a/modules/ve/dm/ve.dm.Transaction.js +++ b/modules/ve/dm/ve.dm.Transaction.js @@ -272,6 +272,8 @@ ve.dm.Transaction.newFromContentBranchConversion = function ( doc, range, type, // Add attributes to opening if needed if ( ve.isPlainObject( attr ) ) { opening.attributes = attr; + } else { + attr = {}; } // Replace the wrappings of each content branch in the range for ( i = 0; i < selection.length; i++ ) {