fix style

This commit is contained in:
Sami Samhuri 2011-12-02 20:49:42 -08:00
parent df2b8d7c33
commit 1306761490

View file

@ -41,13 +41,15 @@
} }
}) })
} }
} else if ([].__proto__) { }
else if ([].__proto__) {
inherits = function(ctor, superCtor) { inherits = function(ctor, superCtor) {
ctor.super_ = superCtor ctor.super_ = superCtor
ctor.prototype.__proto__ = superCtor.prototype ctor.prototype.__proto__ = superCtor.prototype
ctor.prototype.constructor = ctor ctor.prototype.constructor = ctor
} }
} else { // ie8 }
else { // ie8
var __hasProp = Object.prototype.hasOwnProperty var __hasProp = Object.prototype.hasOwnProperty
inherits = function(child, parent) { inherits = function(child, parent) {
for (var key in parent) { for (var key in parent) {