Skip to content

Commit

Permalink
Fixed promise resolve result object
Browse files Browse the repository at this point in the history
  • Loading branch information
smnh committed Dec 23, 2016
1 parent 3d8267d commit 3a394c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@
deploy.sh
doc/demo_files
node_modules
npm-debug.log
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "transitionjs",
"main": "web_bin/transition.js",
"version": "0.0.2",
"version": "0.0.3",
"authors": [
"smnh (http://smnh.me)"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "transitionjs",
"version": "0.0.2",
"version": "0.0.3",
"description": "A JavaScript library that provides a convenient way to create CSS transitions pragmatically http://transitionjs.org",
"main": "index.js",
"directories": {
Expand Down
5 changes: 4 additions & 1 deletion src/transition.js
Expand Up @@ -610,7 +610,10 @@ Transition.prototype = {
onTransitionEnd(element, this.allPropertiesWereFinished);
}
}
this.resolve(this.allPropertiesWereFinished);
this.resolve({
element: element,
finished: this.allPropertiesWereFinished
});
}

};
Expand Down

0 comments on commit 3a394c2

Please sign in to comment.