Permalink
Browse files

Common JS comlpliance

  • Loading branch information...
1 parent 6c52311 commit b1a032c54e35d7cc7c4c4b0783d8a6dd6baa4726 @Jakobo committed Mar 31, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/sslac.js
View
@@ -1,3 +1,4 @@
+/*global module: true */
/**
* Sslac - A "backwards" class library for JavaScript
* Provides a consistent way to declare classes to ease 1st and 3rd
@@ -344,6 +345,11 @@
externalInterface.valueOf = resolveNamespace;
externalInterface.definitionOf = getDefinition;
externalInterface.noConflict = noConflict;
+
+ // Common JS Modules 1.1 Compliance
+ if (typeof module !== 'undefined' && module.exports) {
+ module.exports = externalInterface.noConflict();
+ }
}());
// licensing block

0 comments on commit b1a032c

Please sign in to comment.