Skip to content

Commit

Permalink
Update v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelodolza committed Apr 10, 2018
1 parent e2807fa commit 428c597
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions dist/js/iziToast.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
MOBILEWIDTH = 568,
CONFIG = {};

$iziToast.childrens = {};
$iziToast.children = {};

// Default settings
var defaults = {
Expand Down Expand Up @@ -332,14 +332,14 @@

$iziToast.setSetting = function (ref, option, value) {

$iziToast.childrens[ref][option] = value;
$iziToast.children[ref][option] = value;

};


$iziToast.getSetting = function (ref, option) {

return $iziToast.childrens[ref][option];
return $iziToast.children[ref][option];

};

Expand Down Expand Up @@ -411,7 +411,7 @@

var that = this,
ref = $toast.getAttribute('data-iziToast-ref'),
settings = extend(this.childrens[ref], options || {}),
settings = extend(this.children[ref], options || {}),
$elem = $toast.querySelector('.'+PLUGIN_NAME+'-progressbar div');

return {
Expand Down Expand Up @@ -541,7 +541,7 @@
$iziToast.hide = function (options, $toast, closedBy) {

var that = this,
settings = extend(this.childrens[$toast.getAttribute('data-iziToast-ref')], options || {});
settings = extend(this.children[$toast.getAttribute('data-iziToast-ref')], options || {});
settings.closedBy = closedBy || null;

delete settings.time.REMAINING;
Expand Down Expand Up @@ -611,7 +611,7 @@

setTimeout(function(){

delete that.childrens[settings.ref];
delete that.children[settings.ref];

$toast.parentNode.remove();

Expand Down Expand Up @@ -655,7 +655,7 @@

settings.ref = new Date().getTime() + Math.floor((Math.random() * 10000000) + 1);

$iziToast.childrens[settings.ref] = settings;
$iziToast.children[settings.ref] = settings;

var $DOM = {
body: document.querySelector('body'),
Expand Down
Loading

0 comments on commit 428c597

Please sign in to comment.