π‘ LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering
Download Trial
Two JavaScript Points
-
- Hereabouts I once said that
window.event
is the same asevent
in a browser, becausewindow
is 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