Class: Bundle

THING.Bundle(param)

Bundle The bundle.

Constructor

new Bundle(param)

The resource bundle object what supports js script by loading with specified loader.
Parameters:
Name Type Description
param Object The initial parameters.
Source:

Members

info :Object

Get the main info.
Type:
  • Object
Source:
Example
let info = bundle.info;
let name = bundle.name;
console.log(`Bundle's name is '${name$}'`);

loaded :Boolean

Check whether had been loaded.
Type:
  • Boolean
Source:
Example
if (bundle.loaded) {
	console.log('bundle has loaded');
}

loading :Boolean

Check whether it's loading.
Type:
  • Boolean
Source:
Example
if (bundle.loading) {
	console.log('bundle is loading');
}

options :Object

Get the options.
Type:
  • Object
Source:
Example
console.log(bundle.options);

url :String

Get the resource url.
Type:
  • String
Source:
Example
console.log(bundle.url);

uuid :String

Get the unique ID.
Type:
  • String
Source:
Example
console.log(bundle.uuid);