From: Christopher De Cairos Date: Thu, 8 Sep 2011 15:01:14 +0000 (-0400) Subject: fix up whitespace in popcorn.processing.js X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f40a068ab3185030af75bc440dd0089853a63978;p=popcorn-js.git fix up whitespace in popcorn.processing.js --- diff --git a/plugins/processing/popcorn.processing.js b/plugins/processing/popcorn.processing.js index 3d55019..272423c 100644 --- a/plugins/processing/popcorn.processing.js +++ b/plugins/processing/popcorn.processing.js @@ -50,11 +50,13 @@ url: options.sketch, dataType: "text", success: function( responseCode ) { + options.codeReady = true; options.processingCode = responseCode; options.pjsInstance = new Processing( options.canvas, options.processingCode ); options.pjsInstance.noLoop(); options.seeking = false; + context.listen( "seeking", function() { options._running && options.canvas.style.display === "inline" && options.noPause && options.pjsInstance.loop(); }); @@ -96,7 +98,6 @@ if ( !options.parentTarget && Popcorn.plugin.debug ) { throw new Error( "target container doesn't exist" ); } - var canvas = document.createElement( "canvas" ); canvas.id = Popcorn.guid( options.target + "-sketch-" );