Sha256: f2739f79cd94fdf6177df79d19f9355e51f6b6865827e33f2efd7a36b1f5c901
Contents?: true
Size: 511 Bytes
Versions: 2
Compression:
Stored size: 511 Bytes
Contents
import EventTarget from './events'; var config = { instrument: false }; EventTarget.mixin(config); function configure(name, value) { if (name === 'onerror') { // handle for legacy users that expect the actual // error to be passed to their function added via // `RSVP.configure('onerror', someFunctionHere);` config.on('error', value); return; } if (arguments.length === 2) { config[name] = value; } else { return config[name]; } } export { config, configure };
Version data entries
2 entries across 2 versions & 1 rubygems