Skip to content

Commit

Permalink
Option 'speed' become 'delay'
Browse files Browse the repository at this point in the history
  • Loading branch information
nenomaz committed Oct 25, 2016
1 parent b9292b9 commit e1f7785
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ To customize some aspects of the plugin behaviour, you can pass an object as a s
$("#elementDesired").easyOverlay("start", {
zindex: 60000, //The default z-index of the overlay is 99999
spin: false, //Do not show a spinning icon on the overlay
speed: 200 //Time in miliseconds for the fadeIn or fadeOut effects of the overlay.
delay: 200 //Time in miliseconds for the fadeIn or fadeOut effects of the overlay.
});
```
**Note**: When using the `stop` option, actually only the `speed` parameter will be relevant.
**Note**: When using the `stop` option, actually only the `delay` parameter will be relevant.
6 changes: 3 additions & 3 deletions jquery.easy-overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ along with jQuery Easy Overlay. If not, see <http://www.gnu.org/licenses/>.
var defaults = {
zindex: "99999",
spin: true,
speed: 400
delay: 400
};

var _options = $.extend({}, defaults, options || {});
Expand Down Expand Up @@ -91,12 +91,12 @@ along with jQuery Easy Overlay. If not, see <http://www.gnu.org/licenses/>.
});

// Show OVERLAY DIV
$("#jqueryEasyOverlayDiv").fadeIn(_options.speed);
$("#jqueryEasyOverlayDiv").fadeIn(_options.delay);
}

function stop(target) {
if( $("#jqueryEasyOverlayDiv").length ) {
$("#jqueryEasyOverlayDiv").fadeOut(_options.speed).remove();
$("#jqueryEasyOverlayDiv").fadeOut(_options.delay, function(){this.remove()});
}
}

Expand Down

0 comments on commit e1f7785

Please sign in to comment.