diff --git a/src/exports.js b/src/exports.js index 2f7f461..0db4a73 100644 --- a/src/exports.js +++ b/src/exports.js @@ -1,4 +1,4 @@ -export {install, uninstall} from './modules/Globals.js'; +export {install} from './modules/Globals.js'; export {default as Util} from './modules/Util.js'; export {default as Queue} from './modules/Queue.js'; export {default as Event} from './modules/Event.js'; diff --git a/src/modules/Event.js b/src/modules/Event.js index cfb46fa..8314ea4 100644 --- a/src/modules/Event.js +++ b/src/modules/Event.js @@ -1,7 +1,7 @@ /** *@module Event */ -import { install, uninstall, host, root, onInstall, browserPrefixes } from './Globals.js'; +import { install, host, root, onInstall, browserPrefixes } from './Globals.js'; import Util from './Util.js'; import Queue from './Queue.js'; import Driver from './Event/Drivers/Driver.js'; @@ -769,16 +769,6 @@ let eventModule = { return install(hostParam, rootParam); }, - /** - * calls the Globals uninstall method with the parameters. This is useful when using the - * Utils module as a standalone distribution or lib. - *@memberof Event - *@returns {boolean} - */ - uninstall() { - return uninstall(); - }, - /** * sets or retrieves the silence event status *@memberof Event diff --git a/src/modules/Util.js b/src/modules/Util.js index 0da27e4..0d80298 100644 --- a/src/modules/Util.js +++ b/src/modules/Util.js @@ -3,7 +3,7 @@ * this module defines a bunch of utility functions that will be relevant to most other modules *@module Util */ -import {toString, host, root, install, uninstall} from './Globals.js'; +import {toString, host, root, install} from './Globals.js'; export default { /** @@ -19,16 +19,6 @@ export default { return install(hostParam, rootParam); }, - /** - * calls the Globals uninstall method with the parameters. This is useful when using the - * Utils module as a standalone distribution or lib. - * - *@returns {boolean} - */ - uninstall() { - return uninstall(); - }, - /** * tests if a variable is a number *@param {*} variable - variable to test diff --git a/src/modules/XML.js b/src/modules/XML.js index d8eb7ce..b6c1d34 100644 --- a/src/modules/XML.js +++ b/src/modules/XML.js @@ -1,7 +1,7 @@ /** *@module XML */ -import { onInstall, host, root, install, uninstall} from './Globals.js'; +import { onInstall, host, root, install} from './Globals.js'; import Util from './Util.js'; import Xhr from './Xhr.js'; @@ -333,16 +333,6 @@ export default class XML { return install(hostParam, rootParam); } - /** - * calls the Globals uninstall method with the parameters. This is useful when using the - * Utils module as a standalone distribution or lib. - * - *@returns {boolean} - */ - static uninstall() { - return uninstall(); - } - /** * xml document construct *@param {string} [qualifiedName] - document root node qualified name diff --git a/src/modules/XPath.js b/src/modules/XPath.js index 7d3dc83..f028783 100644 --- a/src/modules/XPath.js +++ b/src/modules/XPath.js @@ -1,7 +1,7 @@ /** *@module XPath */ -import { onInstall, host, install, uninstall } from './Globals.js'; +import { onInstall, host, install } from './Globals.js'; import Util from './Util.js'; import XML from './XML.js'; @@ -177,16 +177,6 @@ export default { return install(hostParam, rootParam); }, - /** - * calls the Globals uninstall method with the parameters. This is useful when using the - * Utils module as a standalone distribution or lib. - * - *@returns {boolean} - */ - uninstall() { - return uninstall(); - }, - /** * indicates if xPath is supported *@type {boolean} diff --git a/src/modules/Xhr.js b/src/modules/Xhr.js index b7fcf6d..f6ec527 100644 --- a/src/modules/Xhr.js +++ b/src/modules/Xhr.js @@ -3,7 +3,7 @@ * request headers and lots more *@module Xhr */ -import {install, uninstall} from './Globals.js'; +import {install} from './Globals.js'; import Util from './Util.js'; import Queue from './Queue.js'; import Transport from './XhrComponents/Transport.js'; @@ -176,16 +176,6 @@ export default { return install(hostParam, rootParam); }, - /** - * calls the Globals uninstall method with the parameters. This is useful when using the - * Utils module as a standalone distribution or lib. - * - *@returns {boolean} - */ - uninstall() { - return uninstall(); - }, - /** * sets default request timeout or retrieves the default timeout value. Default is 15000 ms *@param {number} [ms] - time in milliseconds after which to timeout request diff --git a/test/modules/Event.spec.js b/test/modules/Event.spec.js index 6751635..bdf0d3b 100644 --- a/test/modules/Event.spec.js +++ b/test/modules/Event.spec.js @@ -27,13 +27,6 @@ describe('Event module', function() { }); }); - describe('.uninstall()', function() { - it('should call the global uninstall method', function() { - expect(_Event.uninstall()).to.be.true; - expect(_Event.install(window, document)).to.be.true; - }); - }); - describe('.silenceEvents', function() { it (`should set or return the silence event current status when called as a setter or a getter. The silenceEvents status determines if the module will stop the browser diff --git a/test/modules/Util.spec.js b/test/modules/Util.spec.js index 7851e07..b5d7ddc 100644 --- a/test/modules/Util.spec.js +++ b/test/modules/Util.spec.js @@ -7,13 +7,6 @@ describe('Util module', function() { }); }); - describe('.uninstall()', function() { - it('should call the global uninstall method', function() { - expect(Util.uninstall()).to.be.true; - expect(Util.install(window, document)).to.be.true; - }); - }); - describe('.isNumber(variable)', function() { it('should return true if argument is a number', function() { expect(Util.isNumber(3.2)).to.be.true; diff --git a/test/modules/XML.spec.js b/test/modules/XML.spec.js index 9298bf6..b6cf7bf 100644 --- a/test/modules/XML.spec.js +++ b/test/modules/XML.spec.js @@ -21,13 +21,6 @@ describe('XML module', function() { }); }); - describe('.uninstall()', function() { - it('should call the global uninstall method', function() { - expect(XML.uninstall()).to.be.true; - expect(XML.install(window, document)).to.be.true; - }); - }); - describe('.supported', function() { it('it should hold a boolean value that indicates if XML creation is supported', function() { expect(XML.supported).to.be.true; diff --git a/test/modules/XPath.spec.js b/test/modules/XPath.spec.js index 1eaa587..88dfdac 100644 --- a/test/modules/XPath.spec.js +++ b/test/modules/XPath.spec.js @@ -22,13 +22,6 @@ describe('XPath module', function() { }); }); - describe('.uninstall()', function() { - it('should call the global uninstall method', function() { - expect(XPath.uninstall()).to.be.true; - expect(XPath.install(window, document)).to.be.true; - }); - }); - describe('.supported', function() { it('it should hold a boolean value that indicates if XPath is supported', function() { expect(XPath.supported).to.be.true; diff --git a/test/modules/Xhr.spec.js b/test/modules/Xhr.spec.js index 2c2ed2c..ac4ffd9 100644 --- a/test/modules/Xhr.spec.js +++ b/test/modules/Xhr.spec.js @@ -22,13 +22,6 @@ describe('Xhr', function() { }); }); - describe('.uninstall()', function() { - it('should call the global uninstall method', function() { - expect(Xhr.uninstall()).to.be.true; - expect(Xhr.install(window, document)).to.be.true; - }); - }); - describe('.fetch(url, options?)', function() { it('should send request to the resource at the given url and return a promise', function() {