From 9bda9a4b531210ec79405024c6f90e57a73a571d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 21 Dec 2015 15:55:40 +0800 Subject: [PATCH] Roo/HtmlEditorCore.js --- Roo/HtmlEditorCore.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index 7fc5ec0368..59a514380d 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -1236,14 +1236,17 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { }, - + /** + * iterateChildren of a Node, calling fn each time, using this as the scole.. + * + */ iterateChildren : function(node, fn) { if (!node.childNodes.length) { return; } for (var i = node.childNodes.length-1; i > -1 ; i--) { - fn.call(this.node.childNodes[i]) + fn.call(this, node.childNodes[i]) } }, -- 2.39.2