Merge remote-tracking branch 'upstream/v0.10'
authorTimothy J Fontaine <tjfontaine@gmail.com>
Tue, 26 Nov 2013 16:41:09 +0000 (08:41 -0800)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Tue, 26 Nov 2013 16:41:09 +0000 (08:41 -0800)
1  2 
doc/api/child_process.markdown
lib/events.js

Simple merge
diff --cc lib/events.js
@@@ -268,9 -261,9 +268,9 @@@ EventEmitter.prototype.removeAllListene
  
    listeners = this._events[type];
  
 -  if (typeof listeners === 'function') {
 +  if (util.isFunction(listeners)) {
      this.removeListener(type, listeners);
-   } else {
+   } else if (Array.isArray(listeners)) {
      // LIFO order
      while (listeners.length)
        this.removeListener(type, listeners[listeners.length - 1]);