Changes to setup return value, SVG bug fix (fixes #269)

This commit is contained in:
Sam
2016-06-09 09:49:01 +01:00
parent 1a745e1eaa
commit 98792168e4
7 changed files with 118 additions and 72 deletions

View File

@ -6,7 +6,6 @@
/*global plyr*/
// General functions
;(function() {
// Setup the player
@ -24,7 +23,7 @@
plyr.loadSprite('dist/demo.svg');
// Plyr returns an array regardless
var player = instances[0];
var player = instances[0].plyr;
// Setup type toggle
var buttons = document.querySelectorAll('[data-source]'),