[Koha-bugs] [Bug 15847] New: Correct JSHint errors in basket.js

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 17 18:15:12 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15847

            Bug ID: 15847
           Summary: Correct JSHint errors in basket.js
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: minor
          Priority: P5 - low
         Component: Templates
          Assignee: oleonard at myacpl.org
          Reporter: oleonard at myacpl.org
        QA Contact: testopia at bugs.koha-community.org
                CC: hector.hecaxmmx at gmail.com,
                    testopia at bugs.koha-community.org

Following coding guideline JS8: "Follow guidelines set by JSHint," some errors
should be corrected in basket.js

basket.js: line 53, col 36, Use '===' to compare with '0'.
basket.js: line 85, col 42, Missing semicolon.
basket.js: line 210, col 5, Implied eval. Consider passing a function instead
of a string.
basket.js: line 219, col 44, Missing semicolon.
basket.js: line 243, col 46, Missing semicolon.
basket.js: line 251, col 29, Use '===' to compare with '0'.
basket.js: line 270, col 13, 'valCookie' is already defined.
basket.js: line 305, col 13, Use '===' to compare with 'undefined'.
basket.js: line 409, col 25, The array literal notation [] is preferable.
basket.js: line 416, col 25, Use '===' to compare with '0'.
basket.js: line 432, col 33, Missing semicolon.
basket.js: line 1, col 11, Missing semicolon.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list