On Jun 28, 2006, at 10:32 AM, P T Withington wrote:
Thanks for the education. I'm rethinking my approach, somewhat ashamed that apparently I didn't sufficiently test multiple timers before submitting my changeset. Replying to the parenthetical: I'm testing for not-an-object to ensure that I can differentiate between the single-timer case and the multiple-timer case. In the single-timer case, I store the ID by itself to avoid an array allocation. If the ID is itself an object, though, I can't tell it from an array. (Oh, and of course I should be using "instanceof Array" in this case, so the ID just can't be an Array. When using 'typeof' I didn't think I could differentiate between Array and Object, but with instanceof I can.) jim |
_______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
