From 6f5e49fc1603b1793ca73a60468fad57f840849a Mon Sep 17 00:00:00 2001 From: David LaPalomento Date: Thu, 4 Apr 2013 18:56:52 -0400 Subject: [PATCH] Use accessors to transfer the poster attribute When transferring the poster attribute from the container to the tech in mediafaker, use the accessor methods instead of directly referencing the private properties. --- test/unit/mediafaker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/mediafaker.js b/test/unit/mediafaker.js index 9ed7e4cf8..4d38395b3 100644 --- a/test/unit/mediafaker.js +++ b/test/unit/mediafaker.js @@ -22,9 +22,9 @@ vjs.MediaFaker.prototype.createEl = function(){ var el = goog.base(this, 'createEl', 'div', { className: 'vjs-tech' }); - if (this.player_.poster_) { + if (this.player().poster()) { // transfer the poster image to mimic HTML - el.poster = this.player_.poster_; + el.poster = this.player().poster(); } vjs.insertFirst(el, this.player_.el());