Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
registerEffect(name,props){
if(name[0] === ":") {
if(typeof props === "string"){
this.effects[name] = props;
}else{
throw new Error("second parameter must be a string when registering aliases");
}
}else{
Velocity.RegisterEffect(name,props);
}
return this;
}registerEffect(name,props){
if(name[0] === ":") {
if(typeof props === "string"){
this.effects[name] = props;
}else{
throw new Error("second parameter must be a string when registering aliases");
}
}else{
Velocity.RegisterEffect(name,props);
}
return this;
}