Permalink
Browse files

Export API properly on WSH.

  • Loading branch information...
1 parent 57fa987 commit 633307560416ce9fdcace07eeee9332446d97eec @jcoglan committed May 27, 2012
Showing with 8 additions and 5 deletions.
  1. +8 −5 src/exports.js
View
@@ -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;
})();

0 comments on commit 6333075

Please sign in to comment.