I believe there may be a bug in the way panes are removed from splitter IF there are more that one splitter on the page. The following is the remove method from kendo.splitter.js in v2013.3.1119:
If there is only one splitter on the page, $(element).index(".k-pane") will return the appropriate index of the pane. If there are more than one splitter on the page, the ".k-pane" selector will return panes for ALL the splitters on the page (not just the splitter in question) and the element's index within that jquery object will NOT correspond to the index in the that.options.panes array. I haven't tried it but I think that the following would eliminate the erroneous panes:
remove:
function
(pane) {
pane = $(pane);
var
that =
this
;
if
(pane.length) {
kendo.destroy(pane);
pane.each(
function
(idx, element){
that.options.panes.splice($(element).index(
".k-pane"
), 1);
$(element).remove();
});
that._removeSplitBars();
if
(that.options.panes.length) {
that.resize();
}
}
return
that;
},
that.options.panes.splice($(element).parent().children(
".k-pane"
).index($(element)),
1);