options._natives.type = name;
options._running = false;
+ natives[ "in" ] && ( natives.start = natives[ "in" ] );
+
+ natives[ "out" ] && ( natives.end = natives[ "out" ] );
+
// Check for previously set default options
defaults = this.options.defaults && this.options.defaults[ options._natives && options._natives.type ];
Popcorn.plugin( "aliasTester", function() {
return {
- start: function() {
+ in: function() {
counter++;
},
- end: function() {
+ out: function() {
counter++;
}
};
popcorn.currentTime( 0 ).pause();
+ ok( popcorn.data.events[ "in" ], "in is a valid alias for start" );
+ plus();
+
+ ok( popcorn.data.events[ "out" ], "out is a valid alias for end" );
+
equals( counter, 0, "Counter is at 0, neither in or out have been called" );
plus();