From 23e966ac2ef3383de4ef3cdd0fda04a1d31704dd Mon Sep 17 00:00:00 2001 From: Dominic Barnes Date: Tue, 21 Jan 2014 10:32:34 -0600 Subject: [PATCH 1/3] using component/bind for Function#bind --- component.json | 1 + index.js | 13 +++++++------ test/index.html | 3 ++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/component.json b/component.json index 3d621d4..a180b56 100644 --- a/component.json +++ b/component.json @@ -7,6 +7,7 @@ "ui" ], "dependencies": { + "component/bind": "*", "component/emitter": "*", "component/dom": "*" }, diff --git a/index.js b/index.js index 07d9b50..5f6e0a4 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,8 @@ * Module dependencies. */ -var Emitter = require('emitter') +var bind = require('bind') + , Emitter = require('emitter') , dom = require('dom') /** @@ -33,10 +34,10 @@ function Menu() { this.menu = dom('