From: Benoît Pin Date: Fri, 10 Oct 2014 11:07:05 +0000 (+0200) Subject: jslint X-Git-Url: https://scm.cri.ensmp.fr/git/Portfolio.git/commitdiff_plain/1a791f652fc028bbb22d800351ce748a7c56974f?ds=sidebyside;hp=--cc jslint --- 1a791f652fc028bbb22d800351ce748a7c56974f diff --git a/skins/cart_widgets.js b/skins/cart_widgets.js index 594fd22..9f59306 100644 --- a/skins/cart_widgets.js +++ b/skins/cart_widgets.js @@ -19,7 +19,7 @@ CartWidget = function(slide, url) { req.send(null); hideProgressImage(); - if (req.status != 200){ + if (req.status !== 200){ alert(req.status); return; } @@ -27,12 +27,12 @@ CartWidget = function(slide, url) { var wdgtNode = this.wdgtNode = getCopyOfNode(doc); slide.appendChild(wdgtNode); - var descriptions = this.descriptions = new Array(); + var descriptions = this.descriptions = []; var divs = wdgtNode.getElementsByTagName('div'); - var d; - for (var i=0; i