in src/main/resources/SLING-INF/libs/sling/sightly/js/internal/resource.js [41:65]
function Resource(nativeResource, promise) {
/**
* The absolute path for this resource
* @name Resource~path
* @member
* @type {string}
*/
this.path = nativeResource.getPath();
/**
* The map of properties for this object
* @name Resource~properties
* @member
* @type {object.<string, object>}
*/
this.properties = getProperties(nativeResource);
/** @private */
this.nativeResource = nativeResource;
if (!promise) {
throw new Error('No promise library provided');
}
this._promise = promise;
}