Remember the example from yesterday?
var ev = document.createEvent("UIEvent")
ev.initUIEvent("test", false, false, null, 1) // obsolete
document.dispatchEvent(ev)
That will become:
var ev = new UIEvent("test", {view:null, detail:1})
document.dispatchEvent(ev)
Or indeed:
document.dispatchEvent(new UIEvent("test", {view:null, detail:1}))
Defined by the DOM Standard today, in browsers, well, that will take a little longer :-)