From cea518821a4371fe7656d62946a20164dceb680e Mon Sep 17 00:00:00 2001 From: Christopher De Cairos Date: Thu, 16 Jun 2011 12:09:34 -0400 Subject: [PATCH] added brackets around date conversion to pass lint --- plugins/processing/popcorn.processing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/processing/popcorn.processing.js b/plugins/processing/popcorn.processing.js index 7af4d9c..c09b700 100644 --- a/plugins/processing/popcorn.processing.js +++ b/plugins/processing/popcorn.processing.js @@ -44,7 +44,7 @@ } else if ( parentTarget.tagName === "DIV" ) { options.canvas = document.createElement( "canvas" ); // +new Date() is used here to create unique id's for canvas' within the same div. - options.canvas.id = options.target + "Sketch" + +new Date(); + options.canvas.id = options.target + "Sketch" + (+new Date()); options.canvas.setAttribute( "data-processing-sources", options.sketch ); parentTarget.appendChild( options.canvas ); } -- 2.43.0