File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,26 +143,26 @@ var BaseSound = new Class({
143143 removeMarker : function ( markerName ) {
144144 return false ;
145145 } ,
146- play : function ( marker , config ) {
147- if ( marker === void 0 ) { marker = '' ; }
148- if ( typeof marker === 'object' ) {
149- config = marker ;
150- marker = '' ;
146+ play : function ( markerName , config ) {
147+ if ( markerName === void 0 ) { markerName = '' ; }
148+ if ( typeof markerName === 'object' ) {
149+ config = markerName ;
150+ markerName = '' ;
151151 }
152- if ( typeof marker !== 'string' ) {
152+ if ( typeof markerName !== 'string' ) {
153153 console . error ( 'Sound marker name has to be a string!' ) ;
154154 return null ;
155155 }
156- if ( ! marker ) {
156+ if ( ! markerName ) {
157157 this . currentConfig = this . config ;
158158 this . duration = this . totalDuration ;
159159 }
160160 else {
161- if ( ! this . markers [ marker ] ) {
162- console . error ( 'No marker with name \'' + marker + '\' found for sound \'' + this . key + '\'!' ) ;
161+ if ( ! this . markers [ markerName ] ) {
162+ console . error ( 'No marker with name \'' + markerName + '\' found for sound \'' + this . key + '\'!' ) ;
163163 return null ;
164164 }
165- this . currentMarker = this . markers [ marker ] ;
165+ this . currentMarker = this . markers [ markerName ] ;
166166 this . currentConfig = this . currentMarker . config ;
167167 this . duration = this . currentMarker . duration ;
168168 }
You can’t perform that action at this time.
0 commit comments