Skip to content

Commit

Permalink
Merge remote branch 'rwldrn/t654' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuck committed Jul 27, 2011
2 parents 875e9d8 + a58c66f commit a9e39fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions popcorn.js
Expand Up @@ -433,7 +433,8 @@
// an object with defined methods
Popcorn.extend(Popcorn.p, (function() {

var methods = "load play pause currentTime playbackRate mute volume duration",
var methods = "load play pause currentTime playbackRate mute volume duration preload playbackRate " +
"autoplay loop controls muted buffered readyState seeking paused played seekable ended",
ret = {};


Expand All @@ -449,7 +450,7 @@
}


if ( arg !== false && arg !== null && typeof arg !== "undefined" ) {
if ( arg != null ) {

this.media[ name ] = arg;

Expand Down Expand Up @@ -751,7 +752,8 @@

// Protected API methods
Popcorn.protect = {
natives: "load play pause currentTime playbackRate mute volume duration removePlugin roundTime trigger listen unlisten exec".toLowerCase().split( /\s+/ )
natives: ( "load play pause currentTime playbackRate mute volume duration removePlugin roundTime trigger listen unlisten exec" +
"preload playbackRate autoplay loop controls muted buffered readyState seeking paused played seekable ended" ).toLowerCase().split( /\s+/ )
};

// Internal Only - Adds track events to the instance object
Expand Down
7 changes: 4 additions & 3 deletions test/popcorn.unit.js
Expand Up @@ -390,9 +390,10 @@ test( "Object", function () {

var popped = Popcorn( "#video" ),
popObj = Popcorn( document.getElementById( "video" ) ),
methods = "load play pause currentTime mute volume roundTime exec removePlugin",
methods = "load play pause currentTime mute volume roundTime exec removePlugin duration " +
"preload playbackRate autoplay loop controls volume muted buffered readyState seeking paused played seekable ended",
count = 0,
expects = 30;
expects = 60;

expect( expects );

Expand Down Expand Up @@ -499,7 +500,7 @@ test("roundTime", function () {

});


test("exec", function () {

QUnit.reset();
Expand Down

0 comments on commit a9e39fb

Please sign in to comment.