1/** 2 * Implementation of prototypal inheritance in JS. 3 */ 4function extend(Child, Parent) { 5 var F = function() { }; 6 F.prototype = Parent.prototype; 7 Child.prototype = new F(); 8 Child.prototype.constructor = Child; 9 Child.superclass = Parent.prototype; 10}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.