From 65eca748e71705d7294f3a51ccc739e18ff39b17 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Wed, 26 Jun 2013 18:11:37 -0700 Subject: [PATCH] Better fallback value in case src is missing Change-Id: Ia9eb5492c871fce97665de718e56d93dd1db433d --- js/lib/ext.Cite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/lib/ext.Cite.js b/js/lib/ext.Cite.js index 75f4bbb86..ebb611a7f 100644 --- a/js/lib/ext.Cite.js +++ b/js/lib/ext.Cite.js @@ -425,7 +425,7 @@ References.prototype.extractRefFromNode = function(node) { References.prototype.insertReferencesIntoDOM = function(refsNode) { var about = refsNode.getAttribute('about'), group = refsNode.data.parsoid.group || '', - src = refsNode.data.parsoid.src || '', // fall back to '' so we don't crash + src = refsNode.data.parsoid.src || '', // fall back so we don't crash // Extract ext-source for .. usage body = Util.extractExtBody("references", src).trim(), refGroup = getRefGroup(this.refGroups, group);