Skip to content

Commit 2aeb3db

Browse files
author
Jeremy White
committed
Fixed bug where init method in webOS classes were overridden
1 parent b2603f0 commit 2aeb3db

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

dist/connect_bridge.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,6 @@ var connectsdk = (function () {
219219
// Base media player (JSON media playback & control commands)
220220

221221
var BaseMediaPlayer = {
222-
init: function () {
223-
this.on(ConnectManager.EventType.STATUS, this.handleMediaStatusUpdate.bind(this));
224-
},
225222

226223
onLoadImage: function (image) {
227224
var imageElement = this.imageElement;
@@ -533,6 +530,10 @@ var connectsdk = (function () {
533530
name: "AirPlay",
534531
interactive: true,
535532

533+
init: function() {
534+
this.on(ConnectManager.EventType.STATUS, this.handleMediaStatusUpdate.bind(this));
535+
},
536+
536537
sendMessage: function (to, message) {
537538
// AirPlay does not have p2p support, so we'll just 'broadcast' this message
538539
this.broadcastMessage(message);

0 commit comments

Comments
 (0)