File tree 3 files changed +5
-5
lines changed 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ var card = Conductor.card({
9
9
play : function ( ) {
10
10
var card = this . card ;
11
11
12
- card . promise . then ( function ( ) {
13
- return card . videoCard . promise ;
12
+ card . waitForLoad ( ) . then ( function ( ) {
13
+ return card . videoCard . waitForLoad ( ) ;
14
14
} ) . then ( function ( ) {
15
15
card . videoCard . sandbox . videoPort . send ( 'play' ) ;
16
16
} ) ;
@@ -66,7 +66,7 @@ var card = Conductor.card({
66
66
this . videoCard = this . childCards [ 0 ] . card ;
67
67
this . surveyCard = this . childCards [ 1 ] . card ;
68
68
69
- this . videoCard . sandbox . promise . then ( function ( ) {
69
+ this . videoCard . waitForLoad ( ) . then ( function ( ) {
70
70
card . videoCard . sandbox . el . on ( 'resize' , function ( dimensions ) {
71
71
card . videoCardDidResize ( dimensions ) ;
72
72
} ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Conductor.card({
9
9
events : {
10
10
play : function ( ) {
11
11
var card = this . card ;
12
- card . promise . then ( function ( ) {
12
+ card . waitForLoad ( ) . then ( function ( ) {
13
13
return card . playerDefered ( ) . promise ;
14
14
} ) . then ( function ( ) {
15
15
card . player . playVideo ( ) ;
Original file line number Diff line number Diff line change 55
55
$ ( this ) . css ( 'height' , '' ) ;
56
56
} ) . data ( 'card' , card ) ;
57
57
58
- card . appendTo ( $card . find ( '.card' ) [ 0 ] ) . promise . then ( function ( ) {
58
+ card . appendTo ( $card . find ( '.card' ) [ 0 ] ) . then ( function ( ) {
59
59
card . render ( 'thumbnail' , {
60
60
width : 600 ,
61
61
height : 600
You can’t perform that action at this time.
0 commit comments