From 8eb3e859a767292151ee76c4b416e0382e0b196b Mon Sep 17 00:00:00 2001 From: kenwheeler Date: Sun, 23 Feb 2014 11:51:47 -0500 Subject: [PATCH] Its Gulp Time --- dispatch.js | 5 +++-- docs/dispatch.html | 6 +++--- docs/dispatch.js.html | 12 ++++++++---- docs/index.html | 2 +- gulpfile.js | 39 +++++++++++++++++++++++++++++++++++++++ package.json | 8 +++++++- src/dispatch.js | 5 +++-- src/dispatch.min.js | 2 +- 8 files changed, 65 insertions(+), 14 deletions(-) create mode 100644 gulpfile.js diff --git a/dispatch.js b/dispatch.js index 89c6860..c3607ee 100644 --- a/dispatch.js +++ b/dispatch.js @@ -28,12 +28,13 @@ }; // Initialize event w/ name + //(mocha-phantomjs doesn't support Event constructor) e.ev.initEvent(event,true, true); // Update method for data e.fnc = function(){ return(fn.call(e.ev, e.data)); - } + }; // Adds event object to global event array dispatch.events[event] = e; @@ -89,7 +90,7 @@ } else { dispatch.global.fireEvent(e.ev); } - } + }; // Return dispatch object return dispatch; diff --git a/docs/dispatch.html b/docs/dispatch.html index ac3da4e..c603a0a 100644 --- a/docs/dispatch.html +++ b/docs/dispatch.html @@ -297,7 +297,7 @@
Parameters:
Source:
@@ -577,7 +577,7 @@
Parameters:
Source:
@@ -624,7 +624,7 @@

Index

Namespaces