From fdfd7ba11192d345c47e82a6a2f69e089baebc72 Mon Sep 17 00:00:00 2001 From: Owen Kieffer-Jones Date: Fri, 5 Oct 2018 12:53:08 +0200 Subject: [PATCH 1/3] Create LICENSE --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d9ecc7e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2013 Ben Kamens + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From 3b05482a44b5787aab2c4ebd3bfad19ab2b67e9a Mon Sep 17 00:00:00 2001 From: Owen Kieffer-Jones Date: Fri, 5 Oct 2018 12:51:15 +0200 Subject: [PATCH 2/3] Updated inline documentation from README --- jquery.menu-aim.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/jquery.menu-aim.js b/jquery.menu-aim.js index 0c32941..b2ac749 100644 --- a/jquery.menu-aim.js +++ b/jquery.menu-aim.js @@ -53,6 +53,13 @@ * // Function to call when mouse exits a menu row. * exit: function() {}, * + * // Function to call when mouse exits the entire menu. If this returns + * // true, the current row's deactivation event and callback function + * // will be fired. Otherwise, if this isn't supplied or it returns + * // false, the currently activated row will stay activated when the + * // mouse leaves the menu entirely. + * exitMenu: function() {}, + * * // Selector for identifying which elements in the menu are rows * // that can trigger the above events. Defaults to "> li". * rowSelector: "> li", @@ -62,8 +69,10 @@ * // this selector. Defaults to "*" (all elements). * submenuSelector: "*", * - * // Direction the submenu opens relative to the main menu. Can be - * // left, right, above, or below. Defaults to "right". + * // Direction the submenu opens relative to the main menu. This + * // controls which direction is "forgiving" as the user moves their + * // cursor from the main menu into the submenu. Can be one of "right", + * // "left", "above", or "below". Defaults to "right". * submenuDirection: "right" * }); * From 42ff23fd79b9feec13ad52853fd7753f128dbc22 Mon Sep 17 00:00:00 2001 From: Owen Kieffer-Jones Date: Fri, 5 Oct 2018 13:00:59 +0200 Subject: [PATCH 3/3] Updated license information --- README.md | 2 +- jquery.menu-aim.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cb5292c..9078d0f 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ _Play with the above example full of fun monkey pictures by opening example/exam ## FAQ -1. What's the license? [MIT](http://en.wikipedia.org/wiki/MIT_License). +1. What's the license? [MIT](LICENSE). 2. Does it support horizontal menus or submenus that open to the left? Yup. Check out the submenuDirection option above. 3. I work at a big company that requires a version number on this third party code before I can use it. Do you have a version number? Sure, current version: 1.1 4. I'm not nearly bored enough. Got anything else? [Read about this plugin's creation](http://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown). diff --git a/jquery.menu-aim.js b/jquery.menu-aim.js index b2ac749..397f47c 100644 --- a/jquery.menu-aim.js +++ b/jquery.menu-aim.js @@ -76,8 +76,8 @@ * submenuDirection: "right" * }); * - * https://github.com/kamens/jQuery-menu-aim -*/ + */ +/*! jQuery-menu-aim | Copyright 2013 Ben Kamens | Released under the MIT license | http://www.opensource.org/licenses/mit-license.php */ (function($) { $.fn.menuAim = function(opts) {