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