Skip to content

Commit cc086f0

Browse files
committed
docs: make sure references to pkg name are consistent with filenames
Changed references - animatecss -> animateCSS
1 parent abf9375 commit cc086f0

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "animatecss",
2+
"name": "animateCSS",
33
"description": "A jQuery plugin to dynamically apply animate.css animations with callbacks",
44
"main": "dist/jquery.animatecss.js",
55
"version": "1.0.7",

dist/jquery.animatecss.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! animatecss - v1.0.6 - 2014-05-21
1+
/*! animateCSS - v1.0.6 - 2014-05-21
22
* https://github.com/craigmdennis/animatecss
33
* Copyright (c) 2014 Craig Dennis; Licensed MIT */
44

@@ -10,10 +10,9 @@
1010

1111
$.fn.extend({
1212
animateCSS: function(effect, options) {
13-
var animate, callback, clean, complete, init, settings, transitionEnd, unhide;
13+
var addClass, animate, callback, complete, init, removeClass, settings, transitionEnd, unhide;
1414
settings = {
15-
effect: effect,
16-
delay: false,
15+
delay: 0,
1716
animationClass: "animated",
1817
infinite: false,
1918
callback: options,
@@ -30,7 +29,12 @@
3029
if (settings.infinite === true) {
3130
settings.animationClass += " infinite";
3231
}
33-
return element.addClass(settings.effect + " " + settings.animationClass + " ");
32+
return setTimeout(function() {
33+
return addClass(element);
34+
}, settings.delay);
35+
};
36+
addClass = function(element) {
37+
return element.addClass(effect + " " + settings.animationClass + " ");
3438
};
3539
unhide = function(element) {
3640
if (element.css("visibility") === "hidden") {
@@ -40,12 +44,12 @@
4044
return element.show();
4145
}
4246
};
43-
clean = function(element) {
44-
return element.removeClass(settings.effect + " " + settings.animationClass);
47+
removeClass = function(element) {
48+
return element.removeClass(effect + " " + settings.animationClass);
4549
};
4650
callback = function(element) {
4751
if (settings.infinite === false) {
48-
clean(element);
52+
removeClass(element);
4953
}
5054
if (typeof settings.callback === "function") {
5155
return settings.callback.call(this);

dist/jquery.animatecss.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "animatecss",
2+
"name": "animateCSS",
33
"version": "1.0.6",
44
"description": "Animate CSS jQuery Plugin",
55
"keywords": [

0 commit comments

Comments
 (0)