http://dev.helma.org/bugs/show_bug.cgi?id=666 Summary: HopObject.size() broken
Product: Helma
Version: CVS trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: HopObject Functionality
AssignedTo:
helma-dev@...
ReportedBy:
nostalgiker@...
return value of size() does not change when removing children of a collection.
e.g. this does not work as expected:
{{{
res.debug('###pre');
res.debug('size ' + forum.size());
res.debug('children ' + forum.list());
var len = forum.size();
for (var i=len-1;i>=0;i--) {
var comment = forum.get(i);
comment.remove();
forum.removeChild(comment);
}
res.debug('###post');
res.debug('size ' + forum.size());
res.debug('children ' + forum.list());
---------- output ---------
###pre
size 3
children Comment#51006863,Comment#51006313,Comment#51005791
###post
size 3
children
}}}
this works as expected in the official helma 1.6.3. release.
--
Configure bugmail:
http://dev.helma.org/bugs/userprefs.cgi?tab=email------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev