Lines Matching refs:options

91   Popcorn = function( entity, options ) {  argument
93 return new Popcorn.p.init( entity, options || null );
109 init: function( entity, options ) {
176 this.options = Popcorn.extend( {}, options ) || {};
179 this.id = this.options.id || Popcorn.guid( nodeName );
299 if ( self.options.frameAnimation ) {
667 trackEvent, sec, options;
763 options = {
776 options = Popcorn.extend( trackEvent, options );
782 options._id = options.id || options._id || Popcorn.guid( options._natives.type );
784 this.data.trackEvents.add( options );
785 TrackEvent.start( this, options );
790 Popcorn.addTrackEvent.ref( this, options );
792 this.emit( eventType, Popcorn.extend({}, options, {
807 Popcorn.addTrackEvent( this, options );
870 if ( !this.options.defaults ) {
871 this.options.defaults = {};
874 if ( !this.options.defaults[ plugin ] ) {
875 this.options.defaults[ plugin ] = {};
878 Popcorn.extend( this.options.defaults[ plugin ], defaults );
1245 track.start = Popcorn.util.toSeconds( track.start, this.parent.options.framerate );
1246 track.end = Popcorn.util.toSeconds( track.end, this.parent.options.framerate );
1427 ( obj.options.defaults && obj.options.defaults[ track._natives.type ] ) ) {
1436 Popcorn.extend( track, obj.options.defaults[ track._natives.type ], temp );
1817 var pluginFn = function( setup, options ) { argument
1819 if ( !options ) {
1826 if ( options.ranges && Popcorn.isArray(options.ranges) ) {
1827 Popcorn.forEach( options.ranges, function( range ) {
1831 var opts = Popcorn.extend( {}, options, range );
1846 var natives = options._natives = {},
1852 options._natives.type = options._natives.plugin = name;
1853 options._running = false;
1858 if ( options.once ) {
1860 this.removeTrackEvent( options._id );
1876 runningPlugins.splice( runningPlugins.indexOf( options ), 1 ) &&
1881 Popcorn.extend( {}, options, {
1884 track: Popcorn.getTrackEvent( this, options.id || options._id )
1892 this.emit( "trackteardown", Popcorn.extend( {}, options, {
1895 track: Popcorn.getTrackEvent( this, options.id || options._id )
1901 options.compose = options.compose || [];
1902 if ( typeof options.compose === "string" ) {
1903 options.compose = options.compose.split( " " );
1905 options.effect = options.effect || [];
1906 if ( typeof options.effect === "string" ) {
1907 options.effect = options.effect.split( " " );
1911 options.compose = options.compose.concat( options.effect );
1913 options.compose.forEach(function( composeOption ) {
1925 options._natives.manifest = manifest;
1928 if ( !( "start" in options ) ) {
1929 options.start = options[ "in" ] || 0;
1932 if ( !options.end && options.end !== 0 ) {
1933 options.end = options[ "out" ] || Number.MAX_VALUE;
1938 if ( !hasOwn.call( options, "toString" ) ) {
1939 options.toString = function() {
1941 "start: " + options.start,
1942 "end: " + options.end,
1943 "id: " + (options.id || options._id)
1947 if ( options.target != null ) {
1948 props.push( "target: " + options.target );
1956 if ( !options.target ) {
1960 manifestOpts = "options" in manifest && manifest.options;
1962 options.target = manifestOpts && "target" in manifestOpts && manifestOpts.target;
1965 if ( !options._id && options._natives ) {
1967 options._id = Popcorn.guid( options._natives.type );
1970 if ( options instanceof TrackEvent ) {
1972 if ( options._natives ) {
1974 options._id = options.id || options._id || Popcorn.guid( options._natives.type );
1977 if ( options._natives._setup ) {
1979 options._natives._setup.call( this, options );
1981 this.emit( "tracksetup", Popcorn.extend( {}, options, {
1982 plugin: options._natives.type,
1984 track: options
1989 this.data.trackEvents.add( options );
1990 TrackEvent.start( this, options );
1995 if ( options._id ) {
1996 Popcorn.addTrackEvent.ref( this, options );
2000 Popcorn.addTrackEvent( this, options );
2018 Popcorn.p[ name ] = plugin[ name ] = function( id, options ) {
2026 if ( id && !options ) {
2027 options = id;
2037 options.id = id;
2042 newOpts = options;
2053 if ( hasOwn.call( options, "start" ) ) {
2054 trackEvent.start = options.start;
2057 if ( hasOwn.call( options, "end" ) ) {
2058 trackEvent.end = options.end;
2067 trackEvent._natives._update.call( this, trackEvent, options );
2082 Popcorn.extend( trackEvent, options );
2152 defaults = ( this.options.defaults && this.options.defaults[ name ] ) || {};
2153 mergedSetupOpts = Popcorn.extend( {}, defaults, options );
2387 Popcorn.xhr = function( options ) { argument
2390 options.dataType = options.dataType && options.dataType.toLowerCase() || null;
2392 if ( options.dataType &&
2393 ( options.dataType === "jsonp" || options.dataType === "script" ) ) {
2396 options.url,
2397 options.success,
2398 options.dataType === "script"
2405 settings = Popcorn.extend( {}, setup, options );