Code coverage report for sc/libs/extend.js

Statements: 100% (9 / 9)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (9 / 9)      Ignored: none     

All files » sc/libs/ » extend.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 191     1   1 15 15   15   15   15     1    
(function(sc) {
  "use strict";
 
  require("./libs");
 
  var extend = function(child, parent) {
    var ctor = function() {
      this.constructor = child;
    };
    ctor.prototype = parent.prototype;
    /* jshint newcap: false */
    child.prototype = new ctor();
    /* jshint newcap: true */
    return child;
  };
 
  sc.libs.extend = extend;
})(sc);