From 845d0fc5dab379d4eca9cb12845301f48dc7dd01 Mon Sep 17 00:00:00 2001 From: Agent-H Date: Mon, 3 Sep 2012 13:55:56 +0300 Subject: [PATCH] Update examples/core-examples/splitPaneExtended/splitPaneExtended.js Setting "top" var in global space fails in Chrome ; It will default to window (which is not the expected behaviour). --- examples/core-examples/splitPaneExtended/splitPaneExtended.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/core-examples/splitPaneExtended/splitPaneExtended.js b/examples/core-examples/splitPaneExtended/splitPaneExtended.js index bd6f6fd..cdb05ef 100644 --- a/examples/core-examples/splitPaneExtended/splitPaneExtended.js +++ b/examples/core-examples/splitPaneExtended/splitPaneExtended.js @@ -33,7 +33,7 @@ uki( ).attachTo( window, '1000 600', {minSize: '600 0'} ); // when we resize second split pane and hit border, try resizing first pane -var top = uki('#top')[0]; +var topView = uki('#top')[0]; uki('HSplitPane:eq(1)').bind('handleMove', function(e) { - if (e.handlePosition > e.dragValue) top.handlePosition(top.handlePosition() - (e.handlePosition - e.dragValue) ).layout(); + if (e.handlePosition > e.dragValue) topView.handlePosition(top.handlePosition() - (e.handlePosition - e.dragValue) ).layout(); }); \ No newline at end of file