Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Tiny bug fix in splitPaneExtended example. #44

Open
wants to merge 1 commit into from

1 participant

Hadrien Milano
Hadrien Milano

Setting "top" var in global space fails in Chrome ; It will default to window (which is not the expected behaviour).

Hadrien Milano hmil 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).
845d0fc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 3, 2012
  1. Hadrien Milano

    Update examples/core-examples/splitPaneExtended/splitPaneExtended.js

    hmil authored
    Setting "top" var in global space fails in Chrome ; It will default to window (which is not the expected behaviour).
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/core-examples/splitPaneExtended/splitPaneExtended.js
4 examples/core-examples/splitPaneExtended/splitPaneExtended.js
View
@@ -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();
});
Something went wrong with that request. Please try again.