- Linting (ESLint): Apply per jsdoc improvements

- npm: Update devDeps (linting, Babel, axe testing)
This commit is contained in:
Brett Zamir
2019-07-09 08:33:18 +08:00
parent 2d53e0c42e
commit aa96a35f45
12 changed files with 148 additions and 162 deletions

View File

@@ -36,33 +36,32 @@ This will return the icon (as jQuery object) with a given ID.
* @license MIT
* @copyright (c) 2009 Alexis Deveria
* {@link http://a.deveria.com}
* @example usage #1:
$(function() {
* @example
$(function () {
$.svgIcons('my_icon_set.svg'); // The SVG file that contains all icons
// No options have been set, so all icons will automatically be inserted
// into HTML elements that match the same IDs.
});
* @example usage #2:
$(function() {
$.svgIcons('my_icon_set.svg', { // The SVG file that contains all icons
* @example
$(function () {
// The SVG file that contains all icons
$.svgIcons('my_icon_set.svg', {
callback (icons) { // Custom callback function that sets click
// events for each icon
$.each(icons, function(id, icon) {
icon.click(function() {
$.each(icons, function (id, icon) {
icon.click(function () {
alert('You clicked on the icon with id ' + id);
});
});
}
}); //The SVG file that contains all icons
});
});
* @example usage #3:
$(function() {
$.svgIcons('my_icon_set.svgz', { // The SVGZ file that contains all icons
* @example
$(function () {
// The SVGZ file that contains all icons
$.svgIcons('my_icon_set.svgz', {
w: 32, // All icons will be 32px wide
h: 32, // All icons will be 32px high
fallback_path: 'icons/', // All fallback files can be found here
@@ -72,19 +71,18 @@ $(function() {
'#close_icon': 'close.png',
'#save_icon': 'save.png'
},
placement: {'.open_icon','open'}, // The "open" icon will be added
placement: {'.open_icon': 'open'}, // The "open" icon will be added
// to all elements with class "open_icon"
resize () {
resize: {
'#save_icon .svg_icon': 64 // The "save" icon will be resized to 64 x 64px
},
callback (icons) { // Sets background color for "close" icon
icons['close'].css('background','red');
icons.close.css('background', 'red');
},
svgz: true // Indicates that an SVGZ file is being used
})
});
});
*/