]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
#515 Changed i variable to idx and initialized it
authorMohammed Buttu <mohammedbuttu@gmail.com>
Thu, 16 Jun 2011 15:20:27 +0000 (11:20 -0400)
committerMohammed Buttu <mohammedbuttu@gmail.com>
Thu, 16 Jun 2011 15:20:27 +0000 (11:20 -0400)
plugins/flickr/popcorn.flickr.js

index 8506f13589426e47a2f644478a1a6837dc7d7cea..908e39cbd8bd508a6914bf7468f0175968884131 100755 (executable)
@@ -40,6 +40,9 @@
         } )
    *
    */
+
+  var idx = 0;
+
   Popcorn.plugin( "flickr" , function( options ) {
     var containerDiv,
         _userid,
         _height  = options.height || "50px",
         _width   = options.width || "50px",
         _padding = options.padding || "5px",
-        _border  = options.border || "0px",
-        i;
+        _border  = options.border || "0px";
 
     // create a new div this way anything in the target div is left intact
     // this is later populated with Flickr images
     containerDiv               = document.createElement( "div" );
-    containerDiv.id            = "flickr"+ i;
+    containerDiv.id            = "flickr" + idx;
     containerDiv.style.width   = "100%";
     containerDiv.style.height  = "100%";
     containerDiv.style.display = "none";
-    i++;
+    idx++;
     
     // ensure the target container the user chose exists
     if ( document.getElementById( options.target ) ) {