From 98792168e4d76ab126f3fb643b9cc7d462b5d1b2 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 9 Jun 2016 09:49:01 +0100 Subject: [PATCH] Changes to setup return value, SVG bug fix (fixes #269) --- changelog.md | 8 ++- demo/dist/demo.js | 2 +- demo/src/js/main.js | 3 +- dist/plyr.js | 4 +- package.json | 2 +- readme.md | 23 ++++--- src/js/plyr.js | 148 ++++++++++++++++++++++++++++---------------- 7 files changed, 118 insertions(+), 72 deletions(-) diff --git a/changelog.md b/changelog.md index c1cca012..08607786 100644 --- a/changelog.md +++ b/changelog.md @@ -1,11 +1,15 @@ # Changelog +# v1.8.0 +- ***(Important)*** `setup()` now returns the element Plyr was setup on rather than the `plyr` object. This means `var player = plyr.setup()[0];` would now be `var player = plyr.setup()[0].plyr;`. This improves support for React and other virtual dom frameworks as mentioned in #254 +- Fixed using a relative URL for `iconUrl` in IE (fixes #269) + # v1.7.0 - SASS cleanup (fixes #265) - Docs tidy up to help quick start (fixes #253) - Fix for issues with data attribute options passing (fixes #257) -- Removed the requirement for a wrapper div to setup Plyr and removed the dependency on the `plyr` classname as a JS hook. By default it will now look for `