clientside/amplesdk — Issue #108: Support event constructors
Author: ilinsky
Created: 2011-11-07 19:10:24+00:00
State: open
Labels: m-runtime, x-featurerequest

There is a trend enabling creation of events using only constructor:

```javascript
var oEvent = new HashChangeEvent('hashchange', {bubbles: true, cancelable: false, oldURL:"old", newURL: "new"})
```

vs. old school

```javascript
var oEvent = document.createEvent("HashChangeEvent");
oEvent.initHashChangeEvent("hashchange", true, false, "old", "new")
```

Some developers may find it useful