Browse Source

Add isOpen to asset manager

pull/3795/head
Artur Arseniev 4 years ago
parent
commit
a29d379cde
  1. 11
      src/asset_manager/index.js

11
src/asset_manager/index.js

@ -150,6 +150,17 @@ export default () => {
cmd.stop(assetCmd);
},
/**
* Checks if the asset manager is open
* @returns {Boolean}
* @example
* assetManager.isOpen(); // true | false
*/
isOpen() {
const cmd = this.em.get('Commands');
return cmd.isActive(assetCmd);
},
/**
* Add new asset/s to the collection. URLs are supposed to be unique
* @param {String|Object|Array<String>|Array<Object>} asset URL strings or an objects representing the resource.

Loading…
Cancel
Save