Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
27 lines
574 B
JavaScript
Executable file
27 lines
574 B
JavaScript
Executable file
'use strict';
|
|
|
|
(function(exports) {
|
|
var id = 0;
|
|
var MockMutationObserver = function MockMutationObserver(callback) {
|
|
var o = {
|
|
id: id++,
|
|
type: 'MockMutationObserver',
|
|
|
|
observe: function(element, config) {},
|
|
|
|
disconnect: function() {},
|
|
|
|
mTriggerCallback: function(mutations) {
|
|
callback(mutations);
|
|
}
|
|
};
|
|
|
|
MockMutationObserver.mLastObserver = o;
|
|
return o;
|
|
};
|
|
MockMutationObserver.mTeardown = function() {
|
|
this.mLastObserver = null;
|
|
};
|
|
|
|
exports.MockMutationObserver = MockMutationObserver;
|
|
})(window);
|