From 30272fa9a15e1ab36a9b2b8cd8cdd5a7286e91c1 Mon Sep 17 00:00:00 2001 From: stevenaw Date: Thu, 14 Apr 2011 12:42:32 -0400 Subject: [PATCH] [#447] Update to ninja in for #475 --- players/baseplayer/popcorn.baseplayer.html | 4 +- players/baseplayer/popcorn.baseplayer.js | 73 ++++++++++++------- players/baseplayer/popcorn.baseplayer.unit.js | 17 ++++- 3 files changed, 61 insertions(+), 33 deletions(-) diff --git a/players/baseplayer/popcorn.baseplayer.html b/players/baseplayer/popcorn.baseplayer.html index 73ecaeb6..9417d8ea 100644 --- a/players/baseplayer/popcorn.baseplayer.html +++ b/players/baseplayer/popcorn.baseplayer.html @@ -37,9 +37,9 @@ document.getElementById( "btnPlay" ).addEventListener( "click", function() { popcorn.play(); }, false ); document.getElementById( "btnPause" ).addEventListener( "click", function() { popcorn.pause(); }, false ); - player.resource = document.getElementById('player_1'); + player._resource = document.getElementById('player_1'); - player.resource.innerHTML += '
Width and Height: '+player.getStyle( 'width' ) + ' by ' + player.getStyle( 'height' ) + player._resource.innerHTML += '
Width and Height: '+player.getStyle( 'width' ) + ' by ' + player.getStyle( 'height' ) + '
Positioned at: '+player.getStyle( 'left' ) + ',' + player.getStyle( 'top' ); dimensions = player.getBoundingClientRect(); diff --git a/players/baseplayer/popcorn.baseplayer.js b/players/baseplayer/popcorn.baseplayer.js index 7cc5f728..e3fceada 100644 --- a/players/baseplayer/popcorn.baseplayer.js +++ b/players/baseplayer/popcorn.baseplayer.js @@ -18,10 +18,10 @@ this.loop; // List of events - this.events = {}; + this._events = {}; // The underlying player resource. May be ,