@bara/core
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -6,2 +6,14 @@ # Change Log | ||
## [2.3.1](https://github.com/barajs/bara/compare/v2.3.0...v2.3.1) (2019-04-19) | ||
### Bug Fixes | ||
* **core:** addListener of createEmitter instance will throw error if parameters is not correct ([28c18b7](https://github.com/barajs/bara/commit/28c18b7)) | ||
* **core:** emitterMap process could not iterable ([8109697](https://github.com/barajs/bara/commit/8109697)) | ||
# [2.3.0](https://github.com/barajs/bara/compare/v2.2.0...v2.3.0) (2019-04-19) | ||
@@ -8,0 +20,0 @@ |
@@ -116,8 +116,15 @@ "use strict"; | ||
// Assign emitter function to emitterMap for fast access | ||
let i = emitterRegistry[emitterRegistryIndex].emitFuncs.length; | ||
// tslint:disable-next-line | ||
while (i--) { | ||
const [eventType, emitFunc] = emitterRegistry[emitterRegistryIndex].emitFuncs[i]; | ||
const emitFuncsArray = emitterRegistry[emitterRegistryIndex].emitFuncs; | ||
for (const emitFuncs of emitFuncsArray) { | ||
const [eventType, emitFunc] = emitFuncs; | ||
emitterMap[eventType] = emitFunc; | ||
} | ||
// let i = emitterRegistry[emitterRegistryIndex].emitFuncs.length | ||
//// tslint:disable-next-line | ||
// while (i--) { | ||
// const [eventType, emitFunc] = emitterRegistry[ | ||
// emitterRegistryIndex | ||
// ].emitFuncs[i] | ||
// emitterMap[eventType] = emitFunc | ||
// } | ||
emitterRegistryIndex += 1; | ||
@@ -124,0 +131,0 @@ return emitterRegistry[emitterRegistryIndex - 1]; |
{ | ||
"name": "@bara/core", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "BaraJS Core - Created For Creating", | ||
@@ -44,3 +44,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "e343d9c27b3ee9a195b3d0c550648301a3e88232" | ||
"gitHead": "9cc826cedb01d955c5813def5fe197d9d527f7cd" | ||
} |
Sorry, the diff of this file is not supported yet
56593
739