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-18.0.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.21.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.20.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.19.1 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.19.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.18.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.17.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.16.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.15.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.14.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.13.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.12.2 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.12.1 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.12.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.11.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.10.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.9.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.8.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.7.0 node_modules/event-emitter/all-off.js
govuk_publishing_components-17.6.1 node_modules/event-emitter/all-off.js