Browse Source

use real extendsStatic in tslib-lite

Adam Shaw 8 years ago
parent
commit
1337e2c6c6
1 changed files with 2 additions and 6 deletions
  1. 2 6
      src/tslib-lite.js

+ 2 - 6
src/tslib-lite.js

@@ -7,12 +7,8 @@ only include the helpers we need, to keep down filesize
 */
 
 var extendStatics =
-	/* NOTE: tslib's as-is method is not compatible with how CoffeeScript does subclasses.
-	 * When CoffeeScript is stripped out, can revert.
-	 *
-	 * Object.setPrototypeOf ||
-	 * ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
-	 */
+	Object.setPrototypeOf ||
+	({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
 	function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
 
 exports.__extends = function (d, b) {