callback.fired = true;
- this.unlisten("timeupdate", guid );
-
fn.call(self, event);
+ setTimeout(function() {
+
+ callback.fired = false;
+
+ }, 500 );
}
};
var popped = Popcorn("#video"),
expects = 2,
- count = 0;
+ count = 0,
+ hasLooped = false,
+ loop = 0;
expect(expects);
}
stop( 10000 );
-
-
popped.exec( 4, function () {
-
-
- ok(true, "exec callback fired");
- plus();
-
-
- equal( popped.data.events.timeupdate, null, "exec callback removed");
+ ok(true, "exec callback fired " + loop++ );
plus();
-
+
+ if ( !hasLooped ) {
+
+ popped.currentTime(3).play();
+
+ hasLooped = true;
+ }
}).currentTime(3).play();
-
-
});