pixi.js
Version:
PixiJS — The HTML5 Creation Engine =============
26 lines (22 loc) • 528 B
JavaScript
;
var BrowserAdapter = require('../environment-browser/BrowserAdapter.js');
;
let currentAdapter = BrowserAdapter.BrowserAdapter;
const DOMAdapter = {
/**
* Returns the current adapter.
* @returns {environment.Adapter} The current adapter.
*/
get() {
return currentAdapter;
},
/**
* Sets the current adapter.
* @param adapter - The new adapter.
*/
set(adapter) {
currentAdapter = adapter;
}
};
exports.DOMAdapter = DOMAdapter;
//# sourceMappingURL=adapter.js.map