|
|
@ -20,12 +20,12 @@ |
|
|
handleChange(key, temporaryBindableValue) |
|
|
handleChange(key, temporaryBindableValue) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
let bindableProperties |
|
|
let bindableProperties = [] |
|
|
|
|
|
|
|
|
let anchor |
|
|
let anchor |
|
|
let dropdown |
|
|
let dropdown |
|
|
|
|
|
|
|
|
async function getBindableProperties() { |
|
|
function getBindableProperties() { |
|
|
// Get all bindableProperties |
|
|
// Get all bindableProperties |
|
|
bindableProperties = fetchBindableProperties({ |
|
|
bindableProperties = fetchBindableProperties({ |
|
|
componentInstanceId: $store.currentComponentInfo._id, |
|
|
componentInstanceId: $store.currentComponentInfo._id, |
|
|
@ -36,7 +36,7 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const CAPTURE_VAR_INSIDE_MUSTACHE = /{{([^}]+)}}/g |
|
|
const CAPTURE_VAR_INSIDE_MUSTACHE = /{{([^}]+)}}/g |
|
|
async function replaceBindings(textWithBindings) { |
|
|
function replaceBindings(textWithBindings) { |
|
|
getBindableProperties() |
|
|
getBindableProperties() |
|
|
// Find all instances of mustasche |
|
|
// Find all instances of mustasche |
|
|
const boundValues = textWithBindings.match(CAPTURE_VAR_INSIDE_MUSTACHE) |
|
|
const boundValues = textWithBindings.match(CAPTURE_VAR_INSIDE_MUSTACHE) |
|
|
|