Skip to content

Commit afaf81d

Browse files
committed
Merge pull request #56 from drauggres/master
remove util.Function. bump node engine version
2 parents caa4f0a + 0fdefd1 commit afaf81d

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

dist/longjohn.js

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/longjohn.coffee

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{EventEmitter} = require 'events'
2-
util = require 'util'
32
if EventEmitter.prototype.on?['longjohn']
43
return module.exports = EventEmitter.prototype.on['longjohn']
54

@@ -160,7 +159,7 @@ EventEmitter.prototype.on = (event, callback) ->
160159

161160
EventEmitter.prototype.once = (event, callback) ->
162161
args = Array::slice.call(arguments)
163-
if !util.isFunction(callback)
162+
if typeof callback != 'function'
164163
throw TypeError('callback must be a function');
165164
fired = false
166165
wrap = wrap_callback(callback, 'EventEmitter.once');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"license": "MIT",
1919
"main": "dist/longjohn",
2020
"engines": {
21-
"node": ">= 0.6.0"
21+
"node": ">= 0.9.3"
2222
},
2323
"devDependencies": {
2424
"grunt": "~0.4.0",

0 commit comments

Comments
 (0)