inferno-shared
Advanced tools
Comparing version 1.3.0-rc.9 to 1.3.0-rc.10
@@ -0,0 +0,0 @@ export declare const NO_OP = "$NO_OP"; |
@@ -76,5 +76,6 @@ export const NO_OP = '$NO_OP'; | ||
Lifecycle.prototype.trigger = function trigger() { | ||
for (let i = 0, len = this.listeners.length; i < len; i++) { | ||
this.listeners[i](); | ||
const listeners = this.listeners; | ||
for (let i = 0, len = listeners.length; i < len; i++) { | ||
listeners[i](); | ||
} | ||
}; |
/*! | ||
* inferno-shared v1.3.0-rc.9 | ||
* inferno-shared v1.3.0-rc.10 | ||
* (c) 2017 Dominic Gannaway' | ||
@@ -91,6 +91,5 @@ * Released under the MIT License. | ||
Lifecycle.prototype.trigger = function trigger() { | ||
var this$1 = this; | ||
for (var i = 0, len = this.listeners.length; i < len; i++) { | ||
this$1.listeners[i](); | ||
var listeners = this.listeners; | ||
for (var i = 0, len = listeners.length; i < len; i++) { | ||
listeners[i](); | ||
} | ||
@@ -97,0 +96,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n["inferno-shared"]=n["inferno-shared"]||{})}(this,function(n){"use strict";function r(n){return O(n)?n:n?[n]:n}function e(n){return!a(n.prototype)&&!a(n.prototype.render)}function t(n){var r=typeof n;return"string"===r||"number"===r}function o(n){return a(n)||d(n)}function i(n){return d(n)||n===!1||p(n)||a(n)}function u(n){return"function"==typeof n}function f(n){return"o"===n[0]&&"n"===n[1]&&n.length>3}function s(n){return"string"==typeof n}function c(n){return"number"==typeof n}function d(n){return null===n}function p(n){return n===!0}function a(n){return void 0===n}function l(n){return"object"==typeof n}function y(n){throw n||(n=m),new Error("Inferno Error: "+n)}function h(n){console.warn(n)}function v(n){for(var r=arguments,e=1,t=arguments.length;e<t;e++){var i=r[e];if(!o(i))for(var u=Object.keys(i),f=0,s=u.length;f<s;f++){var c=u[f];n[c]=i[c]}}return n}function g(){this.listeners=[]}var m="a runtime error occured! Use Inferno in development environment to find the error.",w="undefined"!=typeof window&&window.document,O=Array.isArray;g.prototype.addListener=function(n){this.listeners.push(n)},g.prototype.trigger=function(){for(var n=this,r=0,e=this.listeners.length;r<e;r++)n.listeners[r]()},n.NO_OP="$NO_OP",n.ERROR_MSG=m,n.isBrowser=w,n.toArray=r,n.isArray=O,n.isStatefulComponent=e,n.isStringOrNumber=t,n.isNullOrUndef=o,n.isInvalid=i,n.isFunction=u,n.isAttrAnEvent=f,n.isString=s,n.isNumber=c,n.isNull=d,n.isTrue=p,n.isUndefined=a,n.isObject=l,n.throwError=y,n.warning=h,n.assign=v,n.Lifecycle=g,Object.defineProperty(n,"__esModule",{value:!0})}); | ||
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n["inferno-shared"]=n["inferno-shared"]||{})}(this,function(n){"use strict";function r(n){return O(n)?n:n?[n]:n}function e(n){return!a(n.prototype)&&!a(n.prototype.render)}function t(n){var r=typeof n;return"string"===r||"number"===r}function o(n){return a(n)||d(n)}function i(n){return d(n)||n===!1||p(n)||a(n)}function u(n){return"function"==typeof n}function f(n){return"o"===n[0]&&"n"===n[1]&&n.length>3}function s(n){return"string"==typeof n}function c(n){return"number"==typeof n}function d(n){return null===n}function p(n){return n===!0}function a(n){return void 0===n}function l(n){return"object"==typeof n}function y(n){throw n||(n=m),new Error("Inferno Error: "+n)}function h(n){console.warn(n)}function v(n){for(var r=arguments,e=1,t=arguments.length;e<t;e++){var i=r[e];if(!o(i))for(var u=Object.keys(i),f=0,s=u.length;f<s;f++){var c=u[f];n[c]=i[c]}}return n}function g(){this.listeners=[]}var m="a runtime error occured! Use Inferno in development environment to find the error.",w="undefined"!=typeof window&&window.document,O=Array.isArray;g.prototype.addListener=function(n){this.listeners.push(n)},g.prototype.trigger=function(){for(var n=this.listeners,r=0,e=n.length;r<e;r++)n[r]()},n.NO_OP="$NO_OP",n.ERROR_MSG=m,n.isBrowser=w,n.toArray=r,n.isArray=O,n.isStatefulComponent=e,n.isStringOrNumber=t,n.isNullOrUndef=o,n.isInvalid=i,n.isFunction=u,n.isAttrAnEvent=f,n.isString=s,n.isNumber=c,n.isNull=d,n.isTrue=p,n.isUndefined=a,n.isObject=l,n.throwError=y,n.warning=h,n.assign=v,n.Lifecycle=g,Object.defineProperty(n,"__esModule",{value:!0})}); |
/*! | ||
* inferno-shared v1.3.0-rc.9 | ||
* inferno-shared v1.3.0-rc.10 | ||
* (c) 2017 Dominic Gannaway' | ||
@@ -91,6 +91,5 @@ * Released under the MIT License. | ||
Lifecycle.prototype.trigger = function trigger() { | ||
var this$1 = this; | ||
for (var i = 0, len = this.listeners.length; i < len; i++) { | ||
this$1.listeners[i](); | ||
var listeners = this.listeners; | ||
for (var i = 0, len = listeners.length; i < len; i++) { | ||
listeners[i](); | ||
} | ||
@@ -97,0 +96,0 @@ }; |
{ | ||
"name": "inferno-shared", | ||
"version": "1.3.0-rc.9", | ||
"version": "1.3.0-rc.10", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Helpers functions for Inferno", |
@@ -110,5 +110,7 @@ export const NO_OP = '$NO_OP'; | ||
Lifecycle.prototype.trigger = function trigger () { | ||
for (let i = 0, len = this.listeners.length; i < len; i++) { | ||
this.listeners[i](); | ||
const listeners = this.listeners; | ||
for (let i = 0, len = listeners.length; i < len; i++) { | ||
listeners[i](); | ||
} | ||
}; |
16211
429