From: rwldrn Date: Thu, 2 Dec 2010 23:14:45 +0000 (-0500) Subject: whitespace cleanup X-Git-Tag: v0.2~78 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=1d638c818f3345fde5008c0bf3babb61898ae9f7;p=popcorn-js.git whitespace cleanup --- diff --git a/popcorn-api-draft.js b/popcorn-api-draft.js index 8189fca..d849637 100644 --- a/popcorn-api-draft.js +++ b/popcorn-api-draft.js @@ -34,11 +34,8 @@ matches = rIdExp.exec( entity ); - if ( matches.length && matches[2] ) { - elem = document.getElementById(matches[2]); - } this.video = elem ? elem : null; @@ -48,12 +45,10 @@ timelines: [] }; - return this; } }; - // This trick allows our api methods to be chained to // instance references. Popcorn.p.init.prototype = Popcorn.p; @@ -79,7 +74,6 @@ return obj; }; - Popcorn.extend = function( obj ) { var dest = obj, src = slice.call(arguments, 1); @@ -91,7 +85,6 @@ return dest; }; - // A Few reusable utils, memoized onto Popcorn Popcorn.extend( Popcorn, { guid: function() { @@ -107,7 +100,6 @@ return size; } }); - // Simple Factory pattern to implement native // getters/setters and controllers @@ -116,7 +108,6 @@ // and returns an object of methods Popcorn.extend(Popcorn.p, (function () { - // todo: play, pause, mute should toggle var methods = "load play pause currentTime playbackRate mute volume", ret = {}; @@ -147,13 +138,10 @@ })() ); - var nativeEvents = "loadstart progress suspend emptied stalled play pause " + "loadedmetadata loadeddata waiting playing canplay canplaythrough " + "seeking seeked timeupdate ended ratechange durationchange volumechange"; - - Popcorn.events = { //todo, fix types to be custom, natives will be native only types: nativeEvents.split(/\s+/g), @@ -215,7 +203,6 @@ } }; - // Extend listen and trigger to all Popcorn instances Popcorn.forEach( ["trigger", "listen"], function ( key ) { Popcorn.p[key] = Popcorn.events.fn[key]; @@ -239,7 +226,6 @@ }; - global.Popcorn = Popcorn; })(window); \ No newline at end of file