angular-es-utils
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -13,2 +13,8 @@ 'use strict'; | ||
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /** | ||
* @author Kuitos | ||
* @homepage https://github.com/kuitos/ | ||
* @since 2016-05-04 | ||
*/ | ||
var topics = {}; | ||
@@ -19,8 +25,2 @@ | ||
*/ | ||
/** | ||
* @author Kuitos | ||
* @homepage https://github.com/kuitos/ | ||
* @since 2016-05-04 | ||
*/ | ||
exports.default = { | ||
@@ -89,3 +89,3 @@ | ||
var topic = args[0]; | ||
var listeners = topics[topic] || []; | ||
var listeners = [].concat(_toConsumableArray(topics[topic] || [])); | ||
@@ -92,0 +92,0 @@ listeners.forEach(function (listener) { |
{ | ||
"name": "angular-es-utils", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "es utils design for angular1.x", | ||
@@ -13,3 +13,3 @@ "main": "./index.js", | ||
"cover": "karma start ./test/karma.cover.conf.js", | ||
"pub": "npm run build && npm publish lib && cnpm sync angular-es-utils", | ||
"pub": "npm test && npm run build && npm publish lib && cnpm sync angular-es-utils", | ||
"start": "karma start ./test/karma.unit.conf.js" | ||
@@ -16,0 +16,0 @@ }, |
31713