diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-09-15 08:25:00 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-09-15 08:25:00 +0000 |
commit | 526f6c565caf26e0746a344e9999fa050a0a4078 (patch) | |
tree | b251a193c32d1428341bf7a67d2e017769c5b1a6 /tests | |
parent | 1252150c766c7f512f2c55f57908cd610445c81e (diff) | |
download | jquery-ui-526f6c565caf26e0746a344e9999fa050a0a4078.tar.gz jquery-ui-526f6c565caf26e0746a344e9999fa050a0a4078.zip |
slider tests: fixing variable scopes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/slider/slider_methods.js | 4 | ||||
-rw-r--r-- | tests/unit/slider/slider_options.js | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/slider/slider_methods.js b/tests/unit/slider/slider_methods.js index 92d8237b9..711c16f2c 100644 --- a/tests/unit/slider/slider_methods.js +++ b/tests/unit/slider/slider_methods.js @@ -20,7 +20,7 @@ test("init", function() { $('<div></div>').slider().slider("foo").remove(); ok(true, 'arbitrary method called after init'); - el = $('<div></div>').slider(); + var el = $('<div></div>').slider(); var foo = el.data("foo.slider"); el.remove(); ok(true, 'arbitrary option getter after init'); @@ -44,7 +44,7 @@ test("destroy", function() { $('<div></div>').slider().slider("destroy").slider("foo").remove(); ok(true, 'arbitrary method called after destroy'); - el = $('<div></div>').slider(); + var el = $('<div></div>').slider(); var foo = el.slider("destroy").data("foo.slider"); el.remove(); ok(true, 'arbitrary option getter (.data) after destroy'); diff --git a/tests/unit/slider/slider_options.js b/tests/unit/slider/slider_options.js index cc624a0e3..88eb26a8f 100644 --- a/tests/unit/slider/slider_options.js +++ b/tests/unit/slider/slider_options.js @@ -3,6 +3,8 @@ */ (function($) { +var el, options; + function handle() { return el.find(".ui-slider-handle"); } |