FIX: waits libs (highlightjs) to process post before acting
This commit is contained in:
parent
41408e51fa
commit
b2400e1255
|
@ -202,21 +202,23 @@
|
||||||
}, 250)
|
}, 250)
|
||||||
);
|
);
|
||||||
|
|
||||||
// trigger fake event to setup initial state
|
Ember.run.later(() => {
|
||||||
Object.keys(placeholders).forEach(placeholderKey => {
|
// trigger fake event to setup initial state
|
||||||
const placeholder = placeholders[placeholderKey];
|
Object.keys(placeholders).forEach(placeholderKey => {
|
||||||
|
const placeholder = placeholders[placeholderKey];
|
||||||
|
|
||||||
const value =
|
const value =
|
||||||
placeholder.default ||
|
placeholder.default ||
|
||||||
(placeholder.defaults.length && !placeholder.description
|
(placeholder.defaults.length && !placeholder.description
|
||||||
? placeholder.defaults[0]
|
? placeholder.defaults[0]
|
||||||
: null);
|
: null);
|
||||||
|
|
||||||
processChange(
|
processChange(
|
||||||
$cooked,
|
$cooked,
|
||||||
{ target: { value, dataset: { key: placeholderKey } } },
|
{ target: { value, dataset: { key: placeholderKey } } },
|
||||||
mappings
|
mappings
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
}, 500);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue