Browse Source

Fix init issue when is undefined #1272

1.0
jlukic 10 years ago
parent
commit
6af1ba5ffa
1 changed files with 7 additions and 5 deletions
  1. 12
      src/definitions/modules/popup.js

12
src/definitions/modules/popup.js

@ -90,7 +90,7 @@ $.fn.popup = function(parameters) {
if( !module.exists() ) {
module.create();
}
else if(settings.hoverable) {
if(settings.hoverable) {
module.bind.popup();
}
module.instantiate();
@ -662,10 +662,12 @@ $.fn.popup = function(parameters) {
bind: {
popup: function() {
module.verbose('Allowing hover events on popup to prevent closing');
$popup
.on('mouseenter' + eventNamespace, module.event.start)
.on('mouseleave' + eventNamespace, module.event.end)
;
if($popup && $popup.size() > 0) {
$popup
.on('mouseenter' + eventNamespace, module.event.start)
.on('mouseleave' + eventNamespace, module.event.end)
;
}
},
close:function() {
if(settings.hideOnScroll === true || settings.hideOnScroll == 'auto' && settings.on != 'click') {

Loading…
Cancel
Save