Fix #693, this time correctly.

This commit is contained in:
Neil Fraser
2016-10-14 02:00:43 -07:00
parent 92e92cdeaf
commit 7255ec0eec

View File

@@ -884,8 +884,8 @@ FactoryUtils.injectCode = function(code, id) {
*/
FactoryUtils.sameBlockXml = function(blockXml1, blockXml2) {
// Each XML element should contain a single child element with a 'block' tag
if (!blockXml1.tagName.toLowerCase() == 'xml' ||
!blockXml2.tagName.toLowerCase() == 'xml') {
if (blockXml1.tagName.toLowerCase() != 'xml' ||
blockXml2.tagName.toLowerCase() != 'xml') {
throw new Error('Expected two XML elements, recieved elements with tag ' +
'names: ' + blockXml1.tagName + ' and ' + blockXml2.tagName + '.');
}