Skip to content

Commit 971579f

Browse files
committed
Merge branch 'beta'
2 parents 4be45d2 + 5924fad commit 971579f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/botPage/view/blockly/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const backwardCompatibility = (block) => {
1111
} else if (block.getAttribute('type') === 'on_finish') {
1212
block.setAttribute('type', 'after_purchase')
1313
}
14-
for (const statement of block.getElementsByTagName('statement')) {
14+
for (const statement of Array.prototype.slice.call(block.getElementsByTagName('statement'))) {
1515
if (statement.getAttribute('name') === 'STRATEGY_STACK') {
1616
statement.setAttribute('name', 'BEFOREPURCHASE_STACK')
1717
} else if (statement.getAttribute('name') === 'FINISH_STACK') {
@@ -193,7 +193,7 @@ export default class _Blockly {
193193
}
194194
loadWorkspace(xml) {
195195
Blockly.mainWorkspace.clear()
196-
for (const block of xml.children) {
196+
for (const block of Array.prototype.slice.call(xml.children)) {
197197
backwardCompatibility(block)
198198
}
199199
Blockly.Xml.domToWorkspace(xml, Blockly.mainWorkspace)
@@ -204,7 +204,7 @@ export default class _Blockly {
204204
}
205205
loadBlocks(xml) {
206206
const addedBlocks = []
207-
for (const block of xml.children) {
207+
for (const block of Array.prototype.slice.call(xml.children)) {
208208
addedBlocks.push(this.addDomBlocks(block))
209209
}
210210
cleanUp(addedBlocks)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy