Sha256: 970bdaea5f9ac048221697aec4497bc2b1351f0530a6409eb5db0190d5e62a96

Contents?: true

Size: 457 Bytes

Versions: 67

Compression:

Stored size: 457 Bytes

Contents

'use strict';

var value = require('es5-ext/object/valid-object')

  , hasOwnProperty = Object.prototype.hasOwnProperty;

module.exports = function (emitter/*, type*/) {
	var type = arguments[1], data;

	value(emitter);

	if (type !== undefined) {
		data = hasOwnProperty.call(emitter, '__ee__') && emitter.__ee__;
		if (!data) return;
		if (data[type]) delete data[type];
		return;
	}
	if (hasOwnProperty.call(emitter, '__ee__')) delete emitter.__ee__;
};

Version data entries

67 entries across 60 versions & 8 rubygems

Version Path
govuk_publishing_components-16.19.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.18.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.17.0 node_modules/event-emitter/all-off.js
optimacms-0.4.3 spec/dummy/node_modules/event-emitter/all-off.js
optimacms-0.4.2 spec/dummy/node_modules/event-emitter/all-off.js
cortex-0.1.3 spec/dummy/node_modules/event-emitter/all-off.js
guard-sass-lint-0.1.2 node_modules/event-emitter/all-off.js
guard-sass-lint-0.1.1 node_modules/event-emitter/all-off.js
lanes-0.8.0 node_modules/event-emitter/all-off.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/event-emitter/all-off.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/event-emitter/all-off.js
eslint_node_modules-1.6.0.1 vendor/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/event-emitter/all-off.js
eslint_node_modules-1.6.0 vendor/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/event-emitter/all-off.js
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/memoizee/node_modules/event-emitter/all-off.js
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli-color/node_modules/memoizee/node_modules/event-emitter/all-off.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/memoizee/node_modules/event-emitter/all-off.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli-color/node_modules/memoizee/node_modules/event-emitter/all-off.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/memoizee/node_modules/event-emitter/all-off.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli-color/node_modules/memoizee/node_modules/event-emitter/all-off.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/memoizee/node_modules/event-emitter/all-off.js