homerjam / angular-gsapify-router

Angular UI-Router animation directive allowing configuration of GSAP state transitions based on priority
http://homerjam.github.io/angular-gsapify-router/
MIT License
85 stars 16 forks source link

Fix type handling for array transition in/out #30

Open moneymikeMD opened 5 years ago

moneymikeMD commented 5 years ago

As discussed in the issue, when the object passed in is an Array, the old version of the code used to run the injection code and exit based on the type checking logic. This version keeps the enhancement of using the angular type checks but switches the logic to an if/else block to match the original intention of the code before it was changed.