Skip to content

Commit 33120ff

Browse files
committed
Update classical-inherit.js
1 parent 88a0a64 commit 33120ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

classical-inherit.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,14 @@ function inherit(C, P){
8282
// classical inherit # (preferred way)
8383

8484

85-
var inherit = (function(){
86-
var F = functuion() {};
87-
return function(C, P){
85+
var inherit = (function () {
86+
var F = function () {};
87+
return function (C, P) {
8888
F.prototype = P.prototype;
8989
C.prototype = new F();
9090
C.uber = P.prototype;
9191
C.prototype.constructor = C;
9292
}
93-
})
93+
})();
94+
9495

0 commit comments

Comments
 (0)