Skip to content
Permalink
Browse files

slider tests: fixing variable scopes

  • Loading branch information
jzaefferer committed Sep 15, 2009
1 parent 1252150 commit 526f6c565caf26e0746a344e9999fa050a0a4078
Showing with 4 additions and 2 deletions.
  1. +2 −2 tests/unit/slider/slider_methods.js
  2. +2 −0 tests/unit/slider/slider_options.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');
@@ -3,6 +3,8 @@
*/
(function($) {

var el, options;

function handle() {
return el.find(".ui-slider-handle");
}

0 comments on commit 526f6c5

Please sign in to comment.
You can’t perform that action at this time.