Comparing version 0.1.4 to 0.1.5
@@ -33,3 +33,3 @@ module.exports = function() { | ||
if(opts.hide) { | ||
if(opts.show) { | ||
this.attr('hidden', null); | ||
@@ -39,11 +39,9 @@ } | ||
this.addClass(opts.start); | ||
setTimeout(stop.bind(this), opts.delay); | ||
setTimeout(stop, opts.delay); | ||
} | ||
function stop() { | ||
var stop = function stop() { | ||
this.removeClass(opts.start); | ||
this.removeClass(opts.begin); | ||
//console.log('stop: ' + opts.start); | ||
if(opts.pause) { | ||
@@ -54,3 +52,3 @@ setTimeout(cb, opts.pause); | ||
} | ||
} | ||
}.bind(this); | ||
@@ -57,0 +55,0 @@ // NOTE: often need a timeout to delay before adding the |
{ | ||
"name": "vivify", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Animation plugins", | ||
@@ -5,0 +5,0 @@ "author": "muji <noop@xpm.io>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7864
118