Commit 23873130 authored by Bas Lijnse's avatar Bas Lijnse

Merge branch...

Merge branch '167-pikaday-editor-fields-are-not-cleaned-up-correctly-when-used-in-a-step' into 'master'

Resolve "Pikaday editor fields are not cleaned up correctly when used in a step"

Closes #167

See merge request !93
parents a3dafe05 46bf9036
......@@ -25,7 +25,11 @@ where
//Defer further action till after the field is created...
# (cb,world) = jsWrapFun (\a w -> (jsNull,initDOMEl me w)) world
# world = ((me .# "initDOMEl") .= cb) world
# (cb,world) = jsWrapFun (\a w -> (jsNull,beforeRemove me w)) world
# world = ((me .# "beforeRemove") .= cb) world
= world
beforeRemove me = snd o (me .# "picker" .# "destroy" .$ [])
initDOMEl me world
//Load javascript library first, then start
......
......@@ -327,7 +327,11 @@ itasks.Component = {
me.children.splice(didx, 0, child);
},
beforeChildRemove: function(idx,child) {},
beforeRemove: function() {},
beforeRemove: function() {
this.children.forEach(function (child){
child.beforeRemove();
});
},
setAttribute: function(name,value) {
var me = this;
......
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