Skip to content

Commit

Permalink
Fixing annotations test to test check for results on instance's parent
Browse files Browse the repository at this point in the history
  • Loading branch information
pisi committed Nov 23, 2011
1 parent 049f831 commit 8beff47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/unit/annotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@
$annotation= $('#my_annotation')

// Positioning of annotations happens at `frameChange`
$reel.bind('frameChange', function(){
// and we test it bubbled up to instance's parent
$reel.parent().bind('frameChange', function(){
var
frame= $reel.data('frame'),
should= should_be[frame - 1] == '+'
Expand All @@ -185,7 +186,7 @@

checked.push(frame);
if (checked.length == frames){
$reel.unbind('frameChange');
$reel.parent().unbind('frameChange');
start();
}
});
Expand Down

0 comments on commit 8beff47

Please sign in to comment.