Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for DFL-2954: Inspecting CSS properties causes memory leak.

  • Loading branch information...
commit 8070efbc2eacdebdfd12b702eb078730cff476bb 1 parent 8d22666
@hzr hzr authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/resource-manager/resource_base.js
View
8 src/resource-manager/resource_base.js
@@ -36,10 +36,10 @@ cls.ResourceDetailBase = function()
}
else if (child.nodeType == TEXT)
{
- var pos;
- for (pos = 0; pos < child.nodeValue.length; pos++)
+ var value = child.nodeValue;
+ for (var pos = 0, len = value.length; pos < len; pos++)
{
- var c = child.nodeValue.charAt(pos);
+ var c = value.charAt(pos);
// Linefeed recognition will not support Acorn BBC spooled text output
if ((c == CR ) || (c == LF))
{
@@ -78,7 +78,7 @@ cls.ResourceDetailBase = function()
return;
}
}
- if ((c == CR) && (child.nodeValue.charAt(pos+1) == LF))
+ if ((c == CR) && (value.charAt(pos+1) == LF))
{
pos++;
}
Please sign in to comment.
Something went wrong with that request. Please try again.