Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
26 lines
641 B
JavaScript
Executable file
26 lines
641 B
JavaScript
Executable file
'use strict';
|
|
|
|
(function(exports) {
|
|
var MockCustomEvent = function(type, eventInitDict) {
|
|
this.type = type;
|
|
if (typeof eventInitDict === 'object') {
|
|
this.bubbles = eventInitDict.bubbles;
|
|
this.cancelable = eventInitDict.cancelable;
|
|
this.detail = eventInitDict.detail;
|
|
}
|
|
|
|
return this;
|
|
};
|
|
|
|
MockCustomEvent.prototype = {
|
|
initCustomEvent:
|
|
function mce_initCustomEvent(type, canBubble, cancelable, detail) {
|
|
this.type = type;
|
|
this.bubbles = canBubble;
|
|
this.cancelable = cancelable;
|
|
this.detail = detail;
|
|
}
|
|
};
|
|
|
|
exports.MockCustomEvent = MockCustomEvent;
|
|
}(window));
|