Fix error in events.js transitionEventNamesFor method (#1294)

old
rainie 2017-04-02 20:12:07 +08:00 committed by Javi Velasco
parent 7231a7cc15
commit 73bf3be741
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import values from 'ramda/src/values';
import keys from 'ramda/src/keys';
export default {
getMousePosition(event) {
@ -64,9 +64,9 @@ const TRANSITIONS = {
};
function transitionEventNamesFor(element) {
return values(TRANSITIONS).reduce((result, transition) => (
return keys(TRANSITIONS).reduce((result, transition) => (
!result && (element && element.style[transition] !== undefined)
? TRANSITIONS[transition]
: result
));
), null);
}