extend.js

Methods

inner extendFn(superClass, subClassMethodsopt) → {Object}

Function for subclassing using the same inheritance that videojs uses internally

Parameters:
Name Type Attributes Default Description
superClass Object

The class to inherit from

subClassMethods Object <optional>
{}

The class to inherit to

Returns:
Object -

The new object with subClassMethods that inherited superClass.