Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
todo_data( Parent, Child, options.data );
config.forEach( each => {
each.extend( Parent, Child, options ) }
);
for ( let key in options ) {
if ( !blacklisted[ key ] && options.hasOwnProperty( key ) ) {
let member = options[ key ]
// if this is a method that overwrites a method, wrap it:
if ( typeof member === 'function' ) {
member = wrapMethod( member, Child.prototype[ key ] );
}
Child.prototype[ key ] = member;
}
}
},