Permalink
Browse files

Tests: fix tests for jQuery 1.9.

  • Loading branch information...
1 parent a5898b2 commit f0bbb83959b182763f1de2888a09a08afda7a0b5 @rstacruz committed Dec 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test.js
View
@@ -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() {
@@ -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);
}

0 comments on commit f0bbb83

Please sign in to comment.