remove pointless prototypeProperties helper call

This commit is contained in:
Sebastian McKenzie
2015-01-15 01:20:06 +11:00
parent 87b890c172
commit 07ddfbeb5d
2 changed files with 0 additions and 14 deletions

View File

@@ -1,11 +1,6 @@
"use strict";
var _slice = Array.prototype.slice;
var _prototypeProperties = function (child, staticProps, instanceProps) {
if (staticProps) Object.defineProperties(child, staticProps);
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
};
var _inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
@@ -51,7 +46,5 @@ var Test = (function (Foo) {
(_Foo$foo2 = Foo.foo).call.apply(_Foo$foo2, [this, "test"].concat(_slice.call(arguments)));
};
_prototypeProperties(Test, {}, {});
return Test;
})(Foo);

View File

@@ -1,10 +1,5 @@
"use strict";
var _prototypeProperties = function (child, staticProps, instanceProps) {
if (staticProps) Object.defineProperties(child, staticProps);
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
};
var _inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
@@ -32,7 +27,5 @@ var Test = (function (Foo) {
return Foo.wow.call(this);
};
_prototypeProperties(Test, {});
return Test;
})(Foo);