mixitup
mixitup copied to clipboard
IE 8, 9 throwing error on insert
IE 8 & 9 are throwing an error "Invalid argument." on line 1838. I tracked it down the the target variable being undefined, when calling self._$parent[0].insertBefore(frag, target). I fixed by adding a default to the variable:
target = (function(){
self._refresh();
if(self._$targets.length){
return (args.index < self._$targets.length || !self._$targets.length) ?
self._$targets[args.index] :
self._$targets[self._$targets.length-1].nextElementSibling;
} else {
return self._$parent[0].children[0];
}
})() || null;
Sorry, this is a double post to issue 173 (https://github.com/patrickkunka/mixitup/issues/173). Somehow still had the window open, and added again.
dupe of #173