From ff4bcad0aab5f4ef03a55f2ba01a97b1fb06a4e9 Mon Sep 17 00:00:00 2001 From: Christopher De Cairos Date: Thu, 8 Sep 2011 11:01:14 -0400 Subject: [PATCH] fix up whitespace in popcorn.processing.js --- plugins/processing/popcorn.processing.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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-" ); -- 2.43.0