jquery.mb.vimeo_player icon indicating copy to clipboard operation
jquery.mb.vimeo_player copied to clipboard

jQuery.fn.v_toggleVolume() should be jQuery.fn.v_toggle_volume()

Open alessandro-newzoo opened this issue 5 years ago • 0 comments

Hi,

Based on the docs, the method jQuery.fn.v_toggleVolume() should toggle the mute status, but if I use that the console will say that .v_toggleVolume is not a function

So I took a look at the source files and turns out we should use jQuery.fn.v_toggle_volume instead, which in fact works fine.

Not working example (based on the Docs):

	$('.icon-unmute').click(function() {
		$('#P1').v_toggleVolume();
	});

Working example (not in the Docs, based on source files inspection):

	$('.icon-unmute').click(function() {
		$('#P1').v_toggle_volume();
	});

So long story short, please fix the docs :)

Thanks a lot!

alessandro-newzoo avatar Sep 26 '19 09:09 alessandro-newzoo