Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Export API properly on WSH.

  • Loading branch information...
commit 633307560416ce9fdcace07eeee9332446d97eec 1 parent 57fa987
@jcoglan jcoglan authored
Showing with 8 additions and 5 deletions.
  1. +8 −5 src/exports.js
View
13 src/exports.js
@@ -3,9 +3,12 @@
? exports
: this;
- api.Line = Sylvester.Line;
- api.Matrix = Sylvester.Matrix;
- api.Plane = Sylvester.Plane;
- api.Polygon = Sylvester.Polygon;
- api.Vector = Sylvester.Vector;
+ api.Line = Sylvester.Line;
+ api.Matrix = Sylvester.Matrix;
+ api.Plane = Sylvester.Plane;
+ api.Polygon = Sylvester.Polygon;
+ api.Vector = Sylvester.Vector;
+
+ if (typeof WScript !== 'undefined')
+ this.Sylvester = Sylvester;
})();
Please sign in to comment.
Something went wrong with that request. Please try again.