From: Christopher De Cairos Date: Thu, 16 Jun 2011 16:09:34 +0000 (-0400) Subject: added brackets around date conversion to pass lint X-Git-Tag: v0.7^2~31^2~8 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=cea518821a4371fe7656d62946a20164dceb680e;p=popcorn-js.git added brackets around date conversion to pass lint --- 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 ); }