animated-transition-group
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -100,5 +100,5 @@ 'use strict'; | ||
(0, _domUtils.addClass)(this, transitionName, className); | ||
(0, _domUtils.addClass)(this, className, transitionName); | ||
(0, _domUtils.setTimeoutAnimationFrame)(function () { | ||
return (0, _domUtils.addClass)(_this2, transitionName, activeClass); | ||
return (0, _domUtils.addClass)(_this2, activeClass, transitionName); | ||
}, delay); | ||
@@ -105,0 +105,0 @@ |
@@ -16,5 +16,4 @@ 'use strict'; | ||
function addClass(component) { | ||
var transitionName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; | ||
var className = arguments[2]; | ||
function addClass(component, className) { | ||
var transitionName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; | ||
@@ -21,0 +20,0 @@ try { |
{ | ||
"name": "animated-transition-group", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "like `<ReactTransitionGroup />` + callbacks, extras and child-specific customization", | ||
@@ -29,6 +29,2 @@ "main": "dist/index.js", | ||
"babel-cli": "^6.18.0", | ||
"jest": "^19.0.2", | ||
"react": "^15.4.2", | ||
"react-addons-transition-group": "^15.4.2", | ||
"rimraf": "^2.6.0", | ||
"babel-eslint": "^6.1.2", | ||
@@ -50,7 +46,9 @@ "babel-loader": "^6.3.2", | ||
"flow-copy-source": "^1.1.0", | ||
"react-test-renderer": "^15.4.2" | ||
"jest": "^19.0.2", | ||
"react": "^15.4.2", | ||
"react-test-renderer": "^15.4.2", | ||
"rimraf": "^2.6.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "15.x", | ||
"react-addons-transition-group": "15.x", | ||
"react-dom": "15.x" | ||
@@ -63,3 +61,6 @@ }, | ||
] | ||
}, | ||
"dependencies": { | ||
"react-addons-transition-group": "^15.4.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
21
22032
262