/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ function(module, exports, __webpack_require__) { /* webpack entry file to build a standalone browser script. */ window.BootstrapMenu = __webpack_require__(1); /***/ }, /* 1 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var classNames = __webpack_require__(2); var $ = __webpack_require__(3); __webpack_require__(4); // modular lodash requires var _ = function() { throw new Error('Custom lodash build for BootstrapMenu. lodash chaining is not included'); }; _.noop = __webpack_require__(6); _.each = __webpack_require__(7); _.contains = __webpack_require__(34); _.extend = __webpack_require__(42); _.uniqueId = __webpack_require__(49); _.isFunction = __webpack_require__(19); var defaultOptions = { /* container of the context menu, where it will be created and where * event listeners will be installed. */ container: 'body', /* user-defined function to obtain specific data about the currently * opened element, to pass it to the rest of user-defined functions * of an action. */ fetchElementData: _.noop, /* what the source of the context menu should be when opened. * Valid values are 'mouse' and 'element'. */ menuSource: 'mouse', /* how to calculate the position of the context menu based on its source. * Valid values are 'aboveLeft', 'aboveRight', 'belowLeft', and 'belowRight'. */ menuPosition: 'belowLeft', /* the event to listen to open the menu. * Valid values are 'click', 'right-click', 'hover' */ menuEvent: 'right-click', // TODO rename to menuAction in next mayor version /* group actions to render them next to each other, with a separator * between each group. */ actionsGroups: [], /* message to show when there are no actions to show in a menu * (isShown() returned false on all actions) */ noActionsMessage: 'No available actions', /* In some weird cases, another plugin may be installing 'click' listeners * in the anchors used for each action of the context menu, and stopping * the event bubbling before it reachs this plugin's listener. * * For those cases, _actionSelectEvent can be used to change the event we * listen to, for example to 'mousedown'. * * Unless the context menu is not working due to this and a workaround is * needed, this option can be safely ignored. */ _actionSelectEvent: 'click' }; function renderMenu(_this) { var $menu = $('