Skip to content

Commit

Permalink
Tests: fix tests for jQuery 1.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Dec 18, 2012
1 parent a5898b2 commit f0bbb83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Expand Up @@ -6,7 +6,7 @@
var $box = $test.find('.box:not(.ghost)');
var $ghost = $box.clone().addClass('ghost').appendTo($test.find('.area'));

$test.data('code')($box, $test);
$test.data('code').fn($box, $test);
});

$('.test').live('mouseleave reset', function() {
Expand Down Expand Up @@ -35,7 +35,7 @@
$test.attr('id', 'test-'+i);
$test.find('h3').html(name);
$test.find('pre').text(code);
$test.data('code', fn);
$test.data('code', {fn: fn});

$('.tests').append($test);
}
Expand Down

0 comments on commit f0bbb83

Please sign in to comment.