]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
added brackets around date conversion to pass lint
authorChristopher De Cairos <cadecairos@India.(none)>
Thu, 16 Jun 2011 16:09:34 +0000 (12:09 -0400)
committerChristopher De Cairos <cadecairos@India.(none)>
Thu, 16 Jun 2011 16:09:34 +0000 (12:09 -0400)
plugins/processing/popcorn.processing.js

index 7af4d9c04b5058715fd7ac3c4b374c7e39f51c03..c09b7001b575eb349ffe3561526b3180737d32c0 100644 (file)
@@ -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 );
       }