Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/iframeApi/mw.IFramePlayerApiClient.js |
— | — | @@ -51,7 +51,7 @@ |
52 | 52 | 'addPlayerReciveApi': function(){ |
53 | 53 | var _this = this; |
54 | 54 | $.receiveMessage( function( event ){ |
55 | | - _this.hanldeReciveMsg( event ); |
| 55 | + _this.handleReciveMsg( event ); |
56 | 56 | }, this.iframeServer); |
57 | 57 | }, |
58 | 58 | 'addIframeFullscreenBinding': function(){ |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | /** |
110 | 110 | * Handle received events |
111 | 111 | */ |
112 | | - 'hanldeReciveMsg': function( event ){ |
| 112 | + 'handleReciveMsg': function( event ){ |
113 | 113 | var _this = this; |
114 | 114 | |
115 | 115 | // Decode the message |
— | — | @@ -181,7 +181,7 @@ |
182 | 182 | var playerProxy = $( '#' + originalIframeId ).get(0); |
183 | 183 | var iframe = $('#' + iframePlayerId).get(0); |
184 | 184 | if(!iframe){ |
185 | | - mw.log("Error invalide iFramePlayer request"); |
| 185 | + mw.log("Error invalid iFramePlayer request"); |
186 | 186 | return false; |
187 | 187 | } |
188 | 188 | if( !iframe['playerApi'] ){ |
Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/iframeApi/mw.IFramePlayerApiServer.js |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | var _this = this; |
69 | 69 | mw.log('IFramePlayerApiServer::_addIframeListener'); |
70 | 70 | $.receiveMessage( function( event ) { |
71 | | - _this.hanldeMsg( event ); |
| 71 | + _this.handleMsg( event ); |
72 | 72 | }, this.getParentUrl() ); |
73 | 73 | }, |
74 | 74 | getParentUrl: function(){ |
— | — | @@ -154,8 +154,8 @@ |
155 | 155 | * |
156 | 156 | * @param {string} event |
157 | 157 | */ |
158 | | - 'hanldeMsg': function( event ){ |
159 | | - mw.log( 'IFramePlayerApiServer:: hanldeMsg: ' + event.data ); |
| 158 | + 'handleMsg': function( event ){ |
| 159 | + mw.log( 'IFramePlayerApiServer:: handleMsg: ' + event.data ); |
160 | 160 | // Check if the server should even be enabled |
161 | 161 | if( !mw.getConfig( 'EmbedPlayer.EnableIframeApi' )){ |
162 | 162 | mw.log( 'Error: Loading iFrame playerApi but config EmbedPlayer.EnableIframeApi is false'); |