diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..d4bfed1 Binary files /dev/null and b/.DS_Store differ diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..2f5acd1 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,7 @@ +Copyright 2015 dgoguerra + +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/dist/BootstrapMenu.js b/dist/BootstrapMenu.js index baa3a0c..80741c6 100644 --- a/dist/BootstrapMenu.js +++ b/dist/BootstrapMenu.js @@ -173,7 +173,7 @@ if (actionsHaveIcon === true) { $ul.append( '
  • ' + - '' + + '' + ' ' + '' + '' + @@ -184,7 +184,7 @@ else { $ul.append( '
  • ' + - '' + + '' + '
  • ' ); } @@ -192,7 +192,7 @@ $ul.append( '' diff --git a/src/BootstrapMenu.js b/src/BootstrapMenu.js index 883c48a..c3f6bce 100644 --- a/src/BootstrapMenu.js +++ b/src/BootstrapMenu.js @@ -107,7 +107,7 @@ function renderMenu(_this) { return; if (isFirstNonEmptyGroup === false) { - $ul.append('
  • '); + $ul.append(''); } isFirstNonEmptyGroup = false; @@ -119,7 +119,7 @@ function renderMenu(_this) { if (actionsHaveIcon === true) { $ul.append( '
  • ' + - '' + + '' + ' ' + '' + '' + @@ -130,7 +130,7 @@ function renderMenu(_this) { else { $ul.append( '
  • ' + - '' + + '' + '
  • ' ); } @@ -138,7 +138,7 @@ function renderMenu(_this) { $ul.append( '' @@ -167,7 +167,7 @@ function setupOpenEventListeners(_this) { // install the handler for every future elements where // the context menu will open - _this.$container.on(openEventName + _this.namespace, _this.selector, function(evt) { + _this.$container.on(openEventName + _this.namespace, _this.selector, function(evt) { var $openTarget = $(this); _this.open($openTarget, evt);