Commit 4d93ce2a by Thimo Kraemer

Fixed bug in parameter evaluator

parent 8c70d38b
/*
* KSS-RPC v0.20-beta
* KSS-RPC v0.21-beta
*
* Copyright (c) 2017, joonis new media
* Author: Thimo Kraemer <thimo.kraemer@joonis.de>
......@@ -61,7 +61,7 @@
******************************************************************************************/
var kss = {
version: '0.20-beta',
version: '0.21-beta',
_initialized: false,
_ruleSheets: {},
_eventBinders: {},
......@@ -919,9 +919,9 @@ kss._EventHandler.prototype = {
|| !(/^(".*"|'.*'|\[.*\]|\{.*\}|true|false|null|[\d.]+)$|\(.*\)/).test(value)) {
return value;
}
var expr = value.replace(/\\["']|["'](?:\\["']|[^"'])*["']|([\w.$]+\s*\()/g,
var expr = value.replace(/\\["']|["'](?:\\["']|[^"'])*["']|([\w$.][\w$.\s]*\()/g,
function(m, g1) {
if (!g1) return m;
if (!g1 || g1[0] == '.') return m;
m = 'kss._paramProviders.' + m;
m = m.replace('(', '.call(this,this.node,');
return m;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment