mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
Fix #693, this time correctly.
This commit is contained in:
@@ -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 + '.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user