Skip to content

Commit b3ebeec

Browse files
committed
Update playground with latest API
1 parent 52e9b96 commit b3ebeec

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

example/cards/ad/card.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ var card = Conductor.card({
99
play: function () {
1010
var card = this.card;
1111

12-
card.promise.then(function () {
13-
return card.videoCard.promise;
12+
card.waitForLoad().then(function () {
13+
return card.videoCard.waitForLoad();
1414
}).then(function () {
1515
card.videoCard.sandbox.videoPort.send('play');
1616
});
@@ -66,7 +66,7 @@ var card = Conductor.card({
6666
this.videoCard = this.childCards[0].card;
6767
this.surveyCard = this.childCards[1].card;
6868

69-
this.videoCard.sandbox.promise.then(function () {
69+
this.videoCard.waitForLoad().then(function () {
7070
card.videoCard.sandbox.el.on('resize', function (dimensions) {
7171
card.videoCardDidResize(dimensions);
7272
});

example/cards/video/card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Conductor.card({
99
events: {
1010
play: function () {
1111
var card = this.card;
12-
card.promise.then(function () {
12+
card.waitForLoad().then(function () {
1313
return card.playerDefered().promise;
1414
}).then(function () {
1515
card.player.playVideo();

example/playground/js/playground-card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
$(this).css('height', '');
5656
}).data('card', card);
5757

58-
card.appendTo($card.find('.card')[0]).promise.then(function() {
58+
card.appendTo($card.find('.card')[0]).then(function() {
5959
card.render('thumbnail', {
6060
width: 600,
6161
height: 600

0 commit comments

Comments
 (0)