Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
[_addJsAsset](options = {}) {
if (!options.value) {
const v = this[_compabillity](this.jsRoute);
return this[_sanitize](v, options.prefix);
}
const args = Object.assign({}, options, {pathname: this._pathname});
this.jsRoute.push(new AssetJs(args));
// deprecate
deprecateJsReturn();
return this[_sanitize](args.value, args.prefix);
}
[_addJsAsset](options = {}) {
if (!options.value) {
const v = this[_compabillity](this.jsRoute);
return this[_sanitize](v, options.prefix);
}
const args = Object.assign({}, options, {pathname: this._pathname});
this.jsRoute.push(new AssetJs(args));
// deprecate
return new JsDeprecation(this[_sanitize](args.value, args.prefix));
}