That is fine. But if we designed the dom for js we would not have added
CustomEvent. You could have used Event and just set detail on that.


On Thu, Mar 28, 2013 at 12:33 PM, Scott J. Miles
<notifications@github.com>wrote:

> In src/wrappers.js:
>
> > @@ -111,6 +127,7 @@ var ShadowDOMPolyfill = {};
> >    function register(nativeConstructor, wrapperConstructor, opt_instance) {
> >      var nativePrototype = nativeConstructor.prototype;
> >      registerInternal(nativePrototype, wrapperConstructor, opt_instance);
> > +    mixinStatics(wrapperConstructor, nativeConstructor);
>
>  CustomEvent is useless
>
>  :(, so you'll have to straighten me out.
>
> We use it like this:
>
> ```javascript
> doc.body.dispatchEvent(
>   new CustomEvent('WebComponentsLoaded', {bubbles: true})
> );```
>
> It was less code then the old way we did that. How should we do it?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/toolkitchen/ShadowDOM/pull/52/files#r3573264>
> .
>



-- 
erik