diff options
author | Sam Potts <me@sampotts.me> | 2015-02-15 11:03:06 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2015-02-15 11:03:06 +1100 |
commit | 63c1d04d72845ecaf82df14ca06300b0d220def9 (patch) | |
tree | 34cb3dfd078ed81c75e1dc94ef85b9bf4b705c68 /assets/js/docs.js | |
parent | 61970a948e0a75d6bdbb14f40370eb952765e70c (diff) | |
download | plyr-63c1d04d72845ecaf82df14ca06300b0d220def9.tar.lz plyr-63c1d04d72845ecaf82df14ca06300b0d220def9.tar.xz plyr-63c1d04d72845ecaf82df14ca06300b0d220def9.zip |
Improved plugin syntax, refactoring...
Diffstat (limited to 'assets/js/docs.js')
-rw-r--r-- | assets/js/docs.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/assets/js/docs.js b/assets/js/docs.js index f80fe696..fcb05868 100644 --- a/assets/js/docs.js +++ b/assets/js/docs.js @@ -2,16 +2,16 @@ // Docs example // ========================================================================== -/*global InitPxVideo, Mustache, templates */ +/*global simpleMedia, templates */ -// Initialize -var video = new InitPxVideo({ - "videoId": "myvid", - "captionsOnDefault": true, - "seekInterval": 20, - "videoTitle": "PayPal Austin promo", - "debug": true, - "html": templates.controls.render({}) +// Register a callback +simpleMedia.on("setup", function() { + console.log(this); }); -console.log(video);
\ No newline at end of file +//execute shout +simpleMedia.setup({ + debug: true, + title: "PayPal demo", + html: templates.controls.render({}) +});
\ No newline at end of file |