filter-tree
Advanced tools
Comparing version 0.3.40 to 0.3.41
@@ -42,3 +42,3 @@ 'use strict'; | ||
q: function(dataRow) { | ||
return this.valOrFunc(dataRow, this.operand); | ||
return this.valOrFunc.call(dataRow, this.operand); | ||
} | ||
@@ -45,0 +45,0 @@ }; |
@@ -253,9 +253,9 @@ /* eslint-env browser */ | ||
valOrFunc: function(dataRow, columnName) { | ||
valOrFunc: function(columnName) { | ||
var result, calculator; | ||
if (dataRow) { | ||
result = dataRow[columnName]; | ||
if (this) { | ||
result = this[columnName]; | ||
calculator = (typeof result)[0] === 'f' && result || this.calculator; | ||
if (calculator) { | ||
result = calculator(dataRow, columnName); | ||
result = calculator.call(this, columnName); | ||
} | ||
@@ -267,3 +267,3 @@ } | ||
p: function(dataRow) { | ||
return this.valOrFunc(dataRow, this.column); | ||
return this.valOrFunc.call(dataRow, this.column); | ||
}, | ||
@@ -270,0 +270,0 @@ |
{ | ||
"name": "filter-tree", | ||
"version": "0.3.40", | ||
"version": "0.3.41", | ||
"description": "Complex table filter expressions with GUI editor.", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106241