]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Updates per review
authorRick Waldron <waldron.rick@gmail.com>
Fri, 22 Jul 2011 15:16:38 +0000 (11:16 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Fri, 22 Jul 2011 15:16:38 +0000 (11:16 -0400)
plugins/flickr/popcorn.flickr.js

index fdb314ab74d42b43d02fc46c889e5416e2128990..955108f0e1f40c0ec6744c26fe0a630664f40fd1 100755 (executable)
         Popcorn.forEach( data.items, function ( item, i ) {
           if ( i < _count ) {
 
-            _link = document.createElement( 'a' );
-            _link.setAttribute( 'href', item.link );
+            _link = document.createElement( "a" );
+            _link.setAttribute( "href", item.link );
             _link.setAttribute( "target", "_blank" );
-            _image = document.createElement( 'img' );
-            _image.setAttribute( 'src', item.media.m );
-            _image.setAttribute( 'height',_height );
-            _image.setAttribute( 'width', _width );
-            _image.setAttribute( 'style', 'border:' + _border + ';padding:' + _padding );
+            _image = document.createElement( "img" );
+            _image.setAttribute( "src", item.media.m );
+            _image.setAttribute( "height",_height );
+            _image.setAttribute( "width", _width );
+            _image.setAttribute( "style", "border:" + _border + ";padding:" + _padding );
             _link.appendChild( _image );
             fragment.appendChild( _link );