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-17.6.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.5.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.4.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.3.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.2.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.1.1 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.1.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.0.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.29.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.28.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.27.1 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.27.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.26.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.25.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.24.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.23.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.22.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.21.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.20.1 node_modules/event-emitter/all-off.js
govuk_publishing_components-16.20.0 node_modules/event-emitter/all-off.js