Constructor
(private) new Bundle(files)
Parameters:
Name | Type | Description |
---|---|---|
files |
Array.<Object> | An array of objects that have a name field and contain a getBlobUrl() function |
- Source:
Methods
(private) destroy()
Destroys the bundle and frees up blob URLs
- Source:
(private) getBlobUrl(url) → {String}
Returns a blob URL for the specified URL.
Parameters:
Name | Type | Description |
---|---|---|
url |
String | The original file URL. Make sure you have called decodeURIComponent on the URL first. |
- Source:
Returns:
A blob URL
- Type
- String
(private) hasBlobUrl(url) → {Boolean}
Returns true if the specified URL exists in the loaded bundle
Parameters:
Name | Type | Description |
---|---|---|
url |
String | The original file URL. Make sure you have called decodeURIComponent on the URL first. |
- Source:
Returns:
True of false
- Type
- Boolean