Fix ESLint issues

This commit is contained in:
Michael Teeuw 2016-09-29 11:12:49 +02:00
parent fc0c706100
commit 54f04c9141

View File

@ -25,8 +25,7 @@
for (var name in prop) {
// Check if we're overwriting an existing function
prototype[name] = typeof prop[name] == "function" &&
typeof _super[name] == "function" && fnTest.test(prop[name]) ?
(function(name, fn) {
typeof _super[name] == "function" && fnTest.test(prop[name]) ? (function(name, fn) {
return function() {
var tmp = this._super;
@ -41,8 +40,7 @@
return ret;
};
})(name, prop[name]) :
prop[name];
})(name, prop[name]) : prop[name];
}
// The dummy class constructor