Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
π« Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
Two JavaScript Points
-
- Hereabouts I once said that
window.eventis the same aseventin a browser, becausewindowis the global object. That was almost right.
This will get a cross-browser event:
onSomeEvent( e ) { e = e || event;MSIE, and I don't have it pinned down yet, sometimes insists on the
window.prefix. I've started to routinely includewindow.even though it looks pretty dumb.- Pop Quiz!
var arr = [1,2,3,4,5]; for ( elem in arr ) { alert(elem); }What is the first
elem?Dan, if you know the answer, please be a little slow to post it.
- Hereabouts I once said that
-
@martinrinehart said:
Dan, if you know the answer, please be a little slow to post it.
.. yuz callin' me Slow, cuz'n ??

Advertisement