Lines Matching refs:obj

59   getKeys = function( obj ) {  argument
60 return Object.keys ? Object.keys( obj ) : (function( obj ) { argument
64 for ( item in obj ) {
65 if ( hasOwn.call( obj, item ) ) {
70 })( obj );
394 Popcorn.forEach = function( obj, fn, context ) { argument
396 if ( !obj || !fn ) {
405 if ( forEach && obj.forEach === forEach ) {
406 return obj.forEach( fn, context );
409 if ( toString.call( obj ) === "[object NodeList]" ) {
410 for ( key = 0, len = obj.length; key < len; key++ ) {
411 fn.call( context, obj[ key ], key, obj );
413 return obj;
416 for ( key in obj ) {
417 if ( hasOwn.call( obj, key ) ) {
418 fn.call( context, obj[ key ], key, obj );
421 return obj;
424 Popcorn.extend = function( obj ) { argument
425 var dest = obj, src = slice.call( arguments, 1 );
454 sizeOf: function( obj ) { argument
457 for ( var prop in obj ) {
861 Popcorn.forEach( plugin, function( obj ) { argument
862 for ( var name in obj ) {
863 this.defaults( name, obj[ name ] );
1208 function isMatch( obj, key, value ) { argument
1209 return obj[ key ] && obj[ key ] === value;
1415 Popcorn.addTrackEvent = function( obj, track ) { argument
1427 ( obj.options.defaults && obj.options.defaults[ track._natives.type ] ) ) {
1436 Popcorn.extend( track, obj.options.defaults[ track._natives.type ], temp );
1446 track._natives._setup.call( obj, track );
1448 obj.emit( "tracksetup", Popcorn.extend( {}, track, {
1456 obj.data.trackEvents.add( track );
1457 TrackEvent.start( obj, track );
1459 this.timeUpdate( obj, null, true );
1463 Popcorn.addTrackEvent.ref( obj, track );
1466 obj.emit( "trackadded", Popcorn.extend({}, track,
1474 Popcorn.addTrackEvent.ref = function( obj, track ) { argument
1475 obj.data.trackRefs[ track._id ] = track;
1477 return obj;
1480 Popcorn.removeTrackEvent = function( obj, removeId ) { argument
1481 var track = obj.getTrackEvent( removeId );
1490 track._natives._teardown.call( obj, track );
1493 obj.data.trackEvents.remove( removeId );
1496 Popcorn.removeTrackEvent.ref( obj, removeId );
1501 obj.emit( "trackremoved", Popcorn.extend({}, track, {
1510 Popcorn.removeTrackEvent.ref = function( obj, removeId ) { argument
1511 delete obj.data.trackRefs[ removeId ];
1513 return obj;
1517 Popcorn.getTrackEvents = function( obj ) { argument
1520 refs = obj.data.trackEvents.byStart,
1537 Popcorn.getTrackEvents.ref = function( obj ) { argument
1538 return obj.data.trackRefs;
1542 Popcorn.getTrackEvent = function( obj, trackId ) { argument
1543 return obj.data.trackRefs[ trackId ];
1547 Popcorn.getTrackEvent.ref = function( obj, trackId ) { argument
1548 return obj.data.trackRefs[ trackId ];
1551 Popcorn.getLastTrackEventId = function( obj ) { argument
1552 return obj.data.history[ obj.data.history.length - 1 ];
1555 Popcorn.timeUpdate = function( obj, event ) { argument
1556 var currentTime = obj.media.currentTime,
1557 previousTime = obj.data.trackEvents.previousUpdateTime,
1558 tracks = obj.data.trackEvents,
1581 !!obj[ type ] ) ) {
1586 runningPlugins = obj.data.running[ type ];
1589 if ( !obj.data.disabled[ type ] ) {
1591 natives.end.call( obj, event, byEnd );
1593 obj.emit( trackend,
1606 Popcorn.removeTrackEvent( obj, byEnd._id );
1619 !!obj[ type ] ) ) {
1624 obj.data.running[ type ].push( byStart );
1626 if ( !obj.data.disabled[ type ] ) {
1628 natives.start.call( obj, event, byStart );
1630 obj.emit( trackstart,
1642 Popcorn.removeTrackEvent( obj, byStart._id );
1659 !!obj[ type ] ) ) {
1664 runningPlugins = obj.data.running[ type ];
1667 if ( !obj.data.disabled[ type ] ) {
1669 natives.end.call( obj, event, byStart );
1671 obj.emit( trackend,
1683 Popcorn.removeTrackEvent( obj, byStart._id );
1697 !!obj[ type ] ) ) {
1703 obj.data.running[ type ].push( byEnd );
1705 if ( !obj.data.disabled[ type ] ) {
1707 natives.start.call( obj, event, byEnd );
1709 obj.emit( trackstart,
1721 Popcorn.removeTrackEvent( obj, byEnd._id );
2223 Popcorn.removePlugin = function( obj, name ) { argument
2229 name = obj;
2230 obj = Popcorn.p;
2248 delete obj[ name ];
2257 var byStart = obj.data.trackEvents.byStart,
2258 byEnd = obj.data.trackEvents.byEnd,
2259 animating = obj.data.trackEvents.animating,
2267 …byStart[ idx ]._natives._teardown && byStart[ idx ]._natives._teardown.call( obj, byStart[ idx ] );
2273 if ( obj.data.trackEvents.startIndex <= idx ) {
2274 obj.data.trackEvents.startIndex--;
2275 obj.data.trackEvents.endIndex--;