(Child, Parent)
| 9218 | } |
| 9219 | |
| 9220 | var inherits = function(Child, Parent) { |
| 9221 | var hasProp = {}.hasOwnProperty; |
| 9222 | |
| 9223 | function T() { |
| 9224 | this.constructor = Child; |
| 9225 | this.constructor$ = Parent; |
| 9226 | for (var propertyName in Parent.prototype) { |
| 9227 | if (hasProp.call(Parent.prototype, propertyName) && |
| 9228 | propertyName.charAt(propertyName.length-1) !== "$" |
| 9229 | ) { |
| 9230 | this[propertyName + "$"] = Parent.prototype[propertyName]; |
| 9231 | } |
| 9232 | } |
| 9233 | } |
| 9234 | T.prototype = Parent.prototype; |
| 9235 | Child.prototype = new T(); |
| 9236 | return Child.prototype; |
| 9237 | }; |
| 9238 | |
| 9239 | |
| 9240 | function isPrimitive(val) { |
no outgoing calls
no test coverage detected