Editor.JS
Extending JavaScript to better handle property and class inheritance.
Methods
Editor.JS.addon (obj, …args)
obj
object…args
object
Copy all properties not defined in obj from arguments[1…n] to it.
Editor.JS.assign (obj, …args)
obj
object…args
object
Copy all properties from arguments[1…n] toobj
, return the mixed result.
Editor.JS.assignExcept (obj, src, except)
obj
objectsrc
objectexcept
array
Copy all properties from arguments[1…n] toobj
except the specific ones.
Editor.JS.clear (obj)
obj
object
Removes all enumerable properties from object.
Editor.JS.copyprop (name, source, target)
name
stringsource
objecttarget
object
Copy property by name from source to target.
Editor.JS.extend (cls, base)
cls
functionbase
function
Derive the class from the supplied base class.
Editor.JS.extract (obj, propNames)
obj
objectexcept
array(string)
Extract properties bypropNames
fromobj
, return the extracted result.
Editor.JS.getPropertyByPath (obj, path)
obj
objectpath
string
Get property by path.