If a programmer calls dock on the splitter while it's already docked, just ignore it instead of breaking

This commit is contained in:
Nathan Gray 2013-05-28 17:08:45 +00:00
parent 25a6b2bda2
commit 6cfda15a5f

View File

@ -271,6 +271,9 @@ var splitterCounter = 0;
.bind("dock"+opts.eventNamespace, function(){
var pw = A[0][opts.pxSplit];
if ( !pw ) return;
// Don't try to dock twice
if (bar.hasClass("splitter-bar-horizontal-docked") || bar.hasClass("splitter-bar-vertical-docked"))
return;
bar._pos = pw;
var x={};
x[opts.origin] = opts.dockPane==A? 0 :