From: ScottDowne Date: Mon, 13 Dec 2010 23:26:09 +0000 (-0500) Subject: removed test plugins, they served me well ;) X-Git-Tag: v0.2~52^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ada51b4b81e4d3eac52455d0dcf2159ff7ee9567;p=popcorn-js.git removed test plugins, they served me well ;) --- diff --git a/plugins/image/popcorn.image.html b/plugins/image/popcorn.image.html deleted file mode 100644 index d52755a..0000000 --- a/plugins/image/popcorn.image.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - Popcorn API Draft DEMO - - - - - - - -

Popcorn Image Demo

- - - -
- - - diff --git a/plugins/image/popcorn.image.js b/plugins/image/popcorn.image.js deleted file mode 100644 index 632dbc3..0000000 --- a/plugins/image/popcorn.image.js +++ /dev/null @@ -1,41 +0,0 @@ -// EXAMPLE PLUGIN: IMAGE - -(function (Popcorn) { - - Popcorn.plugin( "image" , (function(){ - - var container, img, src, title, alt, clickListener, loadListener - - return { - - start: function(event, options){ - - container = document.getElementById(options.target); - img = new Image(); - - loadListener = function(){ - this.alt = options.alt; - this.title = options.title; - - clickListener = function(){ options.click.call( img ); }; - this.addEventListener('click', function(){ clickListener(); }, false); - - container.appendChild( img ); - }; - - img.addEventListener('load', function(){ loadListener.call( img ) }, false); - - img.src = options.src; - }, - - end: function(event, options){ - img.removeEventListener( 'load', loadListener, false ); - img.removeEventListener( 'click', clickListener, false ); - container.removeChild( img ); - } - - }; - - })()); - -})( Popcorn );