16 Nov
2008
16 Nov
'08
3:08 p.m.
Alex Mizrahi wrote:
this piece of parenscript:
(defun my-element-by-id (cache id) (return (or (slot-value cache id) (setf (slot-value cache id) (document.get-element-by-id id)))))
now returns: function myElementById(cache, id) { return cache[id] || (cache[id] = document.getElementById(id)); }; Thanks for the report! Cheers, -- Travis