Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed an error in reporting no method name

  • Loading branch information...
commit 56355e572a824794007dc5cf2a702a897794adf9 1 parent 32c9ecf
@heff heff authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/tech.js
View
2  src/tech.js
@@ -24,7 +24,7 @@ _V_.PlaybackTech = _V_.Component.extend({
_V_.apiMethods = "play,pause,paused,currentTime,setCurrentTime,duration,buffered,volume,setVolume,muted,setMuted,width,height,supportsFullScreen,enterFullScreen,src,load,currentSrc,preload,setPreload,autoplay,setAutoplay,loop,setLoop,error,networkState,readyState,seeking,initialTime,startOffsetTime,played,seekable,ended,videoTracks,audioTracks,videoWidth,videoHeight,textTracks,defaultPlaybackRate,playbackRate,mediaGroup,controller,controls,defaultMuted".split(",");
_V_.each(_V_.apiMethods, function(methodName){
_V_.PlaybackTech.prototype[methodName] = function(){
- throw new Error("The '"+method+"' method is not available on the playback technology's API");
+ throw new Error("The '"+methodName+"' method is not available on the playback technology's API");
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.