}
} else if ( typeOfTemplate === 'string' ) {
template = options.template;
+ } else if ( Popcorn.plugin.debug ) {
+ throw new Error( 'Mustache Plugin Error: options.template must be a String or a Function.' );
} else {
- Popcorn.plugin.debug && Popcorn.error( 'Mustache Plugin Error: options.template must be a String or a Function.' );
template = "";
}
data = JSON.parse( options.data );
} else if ( typeOfData === 'object' ) {
data = options.data;
+ } else if ( Popcorn.plugin.debug ) {
+ thros new Error( 'Mustache Plugin Error: options.data must be a String, Object, or Function.' );
} else {
- Popcorn.plugin.debug && Popcorn.error( 'Mustache Plugin Error: options.data must be a String, Object, or Function.' );
data = "";
}
.volume(0)
.play()
.timeline({
+ start: 1, // seconds
+ target: "timeline",
+ title: "This is a title",
+ text: "this is some interesting text that goes inside",
+ innerHTML: "Click here for <a href='http://www.google.ca'>Google</a>" ,
+ direction: "down"
} )
.timeline({
start: 3, // seconds