Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2aeb3db

Browse files
author
Jeremy White
committedMay 28, 2014
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);

‎dist/connect_bridge.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎sample/scripts/connect_bridge.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/connect_bridge.js

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

202202
var BaseMediaPlayer = {
203-
init: function () {
204-
this.on(ConnectManager.EventType.STATUS, this.handleMediaStatusUpdate.bind(this));
205-
},
206203

207204
onLoadImage: function (image) {
208205
var imageElement = this.imageElement;
@@ -514,6 +511,10 @@ var connectsdk = (function () {
514511
name: "AirPlay",
515512
interactive: true,
516513

514+
init: function() {
515+
this.on(ConnectManager.EventType.STATUS, this.handleMediaStatusUpdate.bind(this));
516+
},
517+
517518
sendMessage: function (to, message) {
518519
// AirPlay does not have p2p support, so we'll just 'broadcast' this message
519520
this.broadcastMessage(message);

0 commit comments

Comments
 (0)
Please sign in to comment.