jeefo_component
Advanced tools
Comparing version 0.0.6 to 0.0.7
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : binder.js | ||
* Created at : 2017-09-06 | ||
* Updated at : 2017-09-06 | ||
* Updated at : 2017-09-09 | ||
* Author : jeefo | ||
@@ -14,2 +14,4 @@ * Purpose : | ||
PLACEHOLDER_REGEX = /{{\s*([^}]+)\s*}}/g, | ||
bind_one_way = function ($parser, controller, controller_property) { | ||
@@ -59,3 +61,7 @@ return { | ||
if (operator === '@') { | ||
controller[prop] = value; | ||
controller[prop] = value.replace(PLACEHOLDER_REGEX, function (sub, param) { | ||
var $parser = parser(component, param); | ||
return $parser.get(); | ||
}); | ||
} else { | ||
@@ -62,0 +68,0 @@ var $parser = parser(component, value); |
{ | ||
"name": "jeefo_component", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Part of jeefo framework", | ||
@@ -5,0 +5,0 @@ "author": { |
34531
1120