( event, params )
| 226 | if ( typeof window.CustomEvent !== "function" ) { |
| 227 | |
| 228 | function CustomEvent ( event, params ) { |
| 229 | params = params || { bubbles: false, cancelable: false, detail: undefined }; |
| 230 | var evt = document.createEvent( 'CustomEvent' ); |
| 231 | evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail ); |
| 232 | return evt; |
| 233 | } |
| 234 | |
| 235 | CustomEvent.prototype = window.Event.prototype; |
| 236 |
nothing calls this directly
no outgoing calls
no test coverage detected