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. 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 0c32941..397f47c 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,13 +69,15 @@ * // 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" * }); * - * 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) {