Permalink
Browse files

Reformat module logic. Include UMD link.

  • Loading branch information...
1 parent 509fe5d commit 8988f43b0a6d8707c83e32caa87e573b16210bb9 @ryanve committed Nov 3, 2012
Showing with 6 additions and 5 deletions.
  1. +5 −4 dj.js
  2. +1 −1 package.json
View
9 dj.js
@@ -4,17 +4,18 @@
* @author Ryan Van Etten (c) 2012
* @link http://github.com/ryanve/dj
* @license MIT
- * @version 0.6.0
+ * @version 0.6.1
*/
/*jslint browser: true, devel: true, node: true, passfail: false, bitwise: true
, continue: true, debug: true, eqeq: true, es5: true, forin: true, newcap: true
, nomen: true, plusplus: true, regexp: true, undef: true, sloppy: true, stupid: true
, sub: true, white: true, indent: 4, maxerr: 180 */
-(function (root, name, factory) {// separate the module logic from its definition ( @ded pattern ;)
- if (typeof module != 'undefined' && module['exports']){ module['exports'] = factory(); } // node
- else { root[name] = root[name] || factory(); } // browser
+(function (root, name, factory) {// github.com/umdjs/umd
+ if ( typeof module != 'undefined' && module['exports'] ) {
+ module['exports'] = factory(); // node / ender / common
+ } else { root[name] = root[name] || factory(); } // browser
}(this, 'dj', function () {
var OP = Object.prototype
View
2 package.json
@@ -1,7 +1,7 @@
{
"name": "dj",
"description": "remixable hook/bridge/relay API for writing extendable modular JavaScript",
- "version": "0.6.0",
+ "version": "0.6.1",
"homepage": "https://github.com/ryanve/dj",
"author": "Ryan Van Etten <@ryanve>",
"keywords": ["extension", "integration", "hook", "bridge", "ender", "jam", "javascript", "js"],

0 comments on commit 8988f43

Please sign in to comment.