Improved plugin syntax, refactoring...

This commit is contained in:
Sam Potts
2015-02-15 11:03:06 +11:00
parent 61970a948e
commit 63c1d04d72
39 changed files with 902 additions and 678 deletions

View File

@ -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);
//execute shout
simpleMedia.setup({
debug: true,
title: "PayPal demo",
html: templates.controls.render({})
});

File diff suppressed because it is too large Load Diff