jQuery.Class.static.setup  function     

Setup gets called on the inherting class with the base class followed by the inheriting class's raw properties.

Setup will deeply extend a static defaults property on the base class with properties on the base class. For example:

$.Class("MyBase",{
  defaults : {
    foo: 'bar'
  }
},{})

MyBase("Inheriting",{
  defaults : {
    newProp : 'newVal'
  }
},{}

Inheriting.defaults -> {foo: 'bar', 'newProp': 'newVal'}
$.Class.setup(baseClass, fullName, staticProps, protoProps) -> undefined
{Object}

the base class that is being inherited from

{String}

the name of the new class

{Object}

the static properties of the new class

{Object}

the prototype properties of the new class

{undefined}
© Jupiter IT - JavaScriptMVC Training and Support