src/js/modules/mediafragment.js
branchpopcorn-port
changeset 653 29282fc3b3b2
parent 649 dc5109512123
child 749 e9ee52225395
equal deleted inserted replaced
652:d6e18921fab8 653:29282fc3b3b2
    28                     var offsettime = pageoffset.substring( 2 );
    28                     var offsettime = pageoffset.substring( 2 );
    29                     this._Popcorn.currentTime( parseFloat( offsettime ) );
    29                     this._Popcorn.currentTime( parseFloat( offsettime ) );
    30                     }
    30                     }
    31                   } else if ( pageoffset.substring(0, 3) === "id=") {
    31                   } else if ( pageoffset.substring(0, 3) === "id=") {
    32                     // annotation
    32                     // annotation
    33                     var annotationId = pageoffset.substring( 2 );
    33                     var annotationId = pageoffset.substring( 3 );
    34 
       
    35                     // there's no better way than that because
    34                     // there's no better way than that because
    36                     // of possible race conditions
    35                     // of possible race conditions
    37                     this._serializer.sync(IriSP.wrap(this, function() {
    36                     this._serializer.sync(IriSP.wrap(this, function() {
    38                           this.lookupAnnotation.call(this, annotationId); 
    37                           this.lookupAnnotation.call(this, annotationId); 
    39                           }));
    38                           }));