Refactoring by adding resolveDefer function
Refactoring by adding resolveDefer function

gbicks/particle,4math2379/sparkjs,jkaramon/sparkjs,harrisonhjones/sparkjs,spark/sparkjs,moors7/sparkjs,harrisonhjones/sparkjs,gbicks/sparkjs