# HG changeset patch # User Patrick PIERRE # Date 1401469548 -7200 # Node ID f0f5895259d9852a6663ec9daf1a2ef7dac6c7a8 # Parent 3fc7130d289c17ea305421945740a98899ea915e Correction jsLint diff -r 3fc7130d289c -r f0f5895259d9 Pdf/BaladeNature/Js/balade_nature.js --- a/Pdf/BaladeNature/Js/balade_nature.js mer. mai 28 18:04:38 2014 +0200 +++ b/Pdf/BaladeNature/Js/balade_nature.js ven. mai 30 19:05:48 2014 +0200 @@ -1,6 +1,9 @@ // $Id$ // balade_nature +/*global $: true */ +/*global $$: true */ + var text = null; var spot = null; var box = null; @@ -11,7 +14,7 @@ // Hotspots (function initialize() { $$(".pdocHotspot").each(function(hotspot) { - var spot = $(hotspot.get('id') + "s") + var spot = $(hotspot.get('id') + "s"); var scenario = hotspot.getElement("span"); if (spot && scenario) { hotspot.addEvent("click", function() { @@ -58,7 +61,7 @@ e.preventDefault(); e.stopPropagation(); onMouseMove({clientX: e.touches[0].clientX, clientY: e.touches[0].clientY}); - } + }; } } });