Permalink
Browse files

update export name (and repo name) from hook to dj and make it so tha…

…t it exports to a an object for easier integration into a base module
  • Loading branch information...
1 parent b284746 commit 56bda62b38cbc773acd61a707990eaa0b05c46d1 @ryanve committed Sep 9, 2012
Showing with 39 additions and 28 deletions.
  1. +1 −1 README.md
  2. +16 −21 hook.js → dj.js
  3. +6 −0 dj.min.js
  4. +2 −0 ender.js
  5. +0 −6 hook.min.js
  6. +14 −0 package.json
View
@@ -1,4 +1,4 @@
-[hook](https://github.com/ryanve/hook)
+[dj](https://github.com/ryanve/dj)
====
remixable hook/bridge/relay API designed for writing highly-extendable modular JavaScript
View
@@ -1,10 +1,10 @@
/*!
- * hook remixable hook/bridge/relay API designed for
+ * dj remixable hook/bridge/relay API designed for
* writing highly-extendable modular JavaScript
* @author Ryan Van Etten (c) 2012
- * @link http://github.com/ryanve/hook
+ * @link http://github.com/ryanve/dj
* @license MIT
- * @version 0.x
+ * @version 0.5.0
*/
/*jslint browser: true, devel: true, node: true, passfail: false, bitwise: true
@@ -15,10 +15,9 @@
(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
-}(this, 'hook', function () {
+}(this, 'dj', function () {
- var hook // the export
- , root = this || window
+ var root = this || window
, OP = Object.prototype
, owns = OP.hasOwnProperty
@@ -74,7 +73,7 @@
/**
* Make new empty object w/ same proto as the `source`. Then
* mixin the owned props from the `source` into the new object.
- * Quasi deep clone (done via inheritance)
+ * Quasi deep clone (done partially via inheritance)
* @param {(Object|Function|null)=} source
* @param {(Object|Function|null)=} opt_parent
* @return {Object}
@@ -292,20 +291,16 @@
}// hookRemix
- // Build the export:
- hook = hookRemix();
- // Add refs to the full api:
- hook['hook'] = hook;
- hook['bridge'] = bridge;
- hook['pro'] = pro;
- hook['nu'] = nu;
- hook['mixin'] = mixin;
- hook['owns'] = owns;
- hook['resample'] = resample;
- hook['expand'] = expand;
-
- // Return the export version:
- return hook;
+ return {// the export
+ 'hook': hookRemix()
+ , 'owns' : owns
+ , 'pro': pro
+ , 'nu': nu
+ , 'bridge': bridge
+ , 'resample': resample
+ , 'expand': expand
+ , 'mixin': mixin
+ };
}));
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -0,0 +1,2 @@
+// bridge file for ender.no.de
+require('dj')['bridge'](ender);
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -0,0 +1,14 @@
+{
+ "name": "dj",
+ "description": "remixable hook/bridge/relay API for writing extendable modular JavaScript",
+ "version": "0.5.0",
+ "homepage": "https://github.com/ryanve/dj",
+ "author": "Ryan Van Etten <@ryanve>",
+ "keywords": ["extension", "integration", "hook", "bridge", "ender", "jam", "javascript", "js"],
+ "main": "./dj.js",
+ "ender": "./ender.js",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/ryanve/dj.git"
+ }
+}

0 comments on commit 56bda62

Please sign in to comment.