Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Commit

Permalink
Common JS comlpliance
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobo committed Mar 31, 2011
1 parent 6c52311 commit b1a032c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sslac.js
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,4 @@
/*global module: true */
/** /**
* Sslac - A "backwards" class library for JavaScript * Sslac - A "backwards" class library for JavaScript
* Provides a consistent way to declare classes to ease 1st and 3rd * Provides a consistent way to declare classes to ease 1st and 3rd
Expand Down Expand Up @@ -344,6 +345,11 @@
externalInterface.valueOf = resolveNamespace; externalInterface.valueOf = resolveNamespace;
externalInterface.definitionOf = getDefinition; externalInterface.definitionOf = getDefinition;
externalInterface.noConflict = noConflict; externalInterface.noConflict = noConflict;

// Common JS Modules 1.1 Compliance
if (typeof module !== 'undefined' && module.exports) {
module.exports = externalInterface.noConflict();
}
}()); }());


// licensing block // licensing block
Expand Down

0 comments on commit b1a032c

Please sign in to comment.