I'm having some trouble with the memstat.rb.js code, specifically with the
committer.forms implementation. [1]
I'm guessing that the implementation of hashes in the rb->js compiler is
inconsistent with my usage of it.
Thanks,
Craig
[1]
This code works:
for form in committer.forms
link = committer.forms[form]
console.log("#{form}: #{link}")
[Log] icla:
https://svn.apache.org/repos/private/documents/iclas/craig-russell.pdf (app.js,
line 4057)
[Log] member:
https://svn.apache.org/repos/private/documents/member_apps/craig-l-russell.pdf
(app.js, line 4057)
[Log] emeritus_rescinded:
https://svn.apache.org/repos/private/documents/emeritus-requests-rescinded/craig-l-russell.txt
(app.js, line 4057)
This code compiles but fails at execution time:
committer.forms.each do |form, link|
console.log("#{form}: #{link}")
end
TypeError: committer.forms.forEach is not a function. (In
'committer.forms.forEach(function(form, link) {
console.log(form + ": " + link)
})', 'committer.forms.forEach' is undefined)
Craig L Russell
[email protected]