mixitup icon indicating copy to clipboard operation
mixitup copied to clipboard

IE 8, 9 throwing error on insert

Open plankguy opened this issue 12 years ago • 2 comments

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;

plankguy avatar Sep 03 '14 23:09 plankguy

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.

plankguy avatar Sep 03 '14 23:09 plankguy

dupe of #173

patrickkunka avatar Sep 10 '14 21:09 patrickkunka