« Return to Thread: [Bug 670] New: convinient Searcher.HitCollection - forEach

[Bug 670] New: convinient Searcher.HitCollection - forEach

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View in Thread

http://dev.helma.org/bugs/show_bug.cgi?id=670

           Summary: convinient Searcher.HitCollection - forEach
           Product: Helma
           Version: CVS trunk
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Extensions
        AssignedTo: helma-dev@...
        ReportedBy: nostalgiker@...


patch adds convinience function forEach(), adapted
https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Objects/Array/ForEach 

less error prone then for-loop + get()

HitCollection now has:
 * get()
 * length()
 * size()
 * forEach()

would also suggest adding 'length' getter and removing size()

--
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

 « Return to Thread: [Bug 670] New: convinient Searcher.HitCollection - forEach