From abd5da3dac5de6d16b5160bed8d6b4e2a405cc80 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 6 Oct 2017 14:17:01 +0300 Subject: [PATCH] small fix... Signed-off-by: Alex A. Naanou --- features.js | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/features.js b/features.js index 32c8282..c45e5b0 100755 --- a/features.js +++ b/features.js @@ -1016,6 +1016,10 @@ var FeatureSetProto = { var unapplicable = [] var features = this.buildFeatureList(lst, (function(n){ + // if we already tested unapplicable, no need to test again... + if(unapplicable.indexOf(n) >= 0){ + return true + } var f = this[n] // check applicability if possible... if(f && f.isApplicable && !f.isApplicable.call(this, obj)){ diff --git a/package.json b/package.json index cfbe79e..2c7e3a6 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-features", - "version": "3.3.1", + "version": "3.3.2", "description": "", "main": "features.js", "scripts": {