1 define(['./createObject'], function(createObject){
4 * Inherit prototype from another Object.
5 * - inspired by Nicholas Zackas <http://nczonline.net> Solution
6 * @param {object} child Child object
7 * @param {object} parent Parent Object
9 function inheritPrototype(child, parent){
10 var p = createObject(parent.prototype);
11 p.constructor = child;
13 child.super_ = parent;
17 return inheritPrototype;