Comparing version 0.1.4 to 0.1.5
@@ -140,2 +140,4 @@ 'use strict'; | ||
if (pastTime >= duration) { | ||
_this.emitter.emit.apply(_this.emitter, ['update'].concat(blend(1))); | ||
if (_this.loop) { | ||
@@ -147,11 +149,9 @@ startTime = timestamp; | ||
_this.status.stop(); | ||
_this.emitter.emit.apply(_this.emitter, ['update'].concat(blend(1))); | ||
_this.emitter.emit('ended'); | ||
return; | ||
} | ||
} else { | ||
_this.emitter.emit.apply(_this.emitter, ['update'].concat(blend(progress))); | ||
} | ||
_this.emitter.emit.apply(_this.emitter, ['update'].concat(blend(progress))); | ||
_this.pastTime = pastTime; | ||
@@ -158,0 +158,0 @@ _this.rafId = root.requestAnimationFrame(stepping); |
{ | ||
"name": "stepperjs", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "A tiny requestAnimationFrame wrapper to improve usability.", | ||
@@ -32,34 +32,34 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"babel-cli": "6.23.0", | ||
"babel-loader": "6.3.2", | ||
"babel-plugin-transform-class-properties": "6.23.0", | ||
"babel-cli": "6.26.0", | ||
"babel-loader": "7.1.2", | ||
"babel-plugin-transform-class-properties": "6.24.1", | ||
"babel-plugin-transform-es3-member-expression-literals": "6.22.0", | ||
"babel-plugin-transform-es3-property-literals": "6.22.0", | ||
"babel-preset-es2015": "^6.22.0", | ||
"chai": "3.5.0", | ||
"gh-pages": "0.12.0", | ||
"html-webpack-plugin": "2.28.0", | ||
"istanbul-instrumenter-loader": "^2.0.0", | ||
"karma": "1.5.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"chai": "4.1.2", | ||
"gh-pages": "1.1.0", | ||
"html-webpack-plugin": "2.30.1", | ||
"istanbul-instrumenter-loader": "^3.0.0", | ||
"karma": "1.7.1", | ||
"karma-chai": "0.1.0", | ||
"karma-chrome-launcher": "2.0.0", | ||
"karma-coverage-istanbul-reporter": "^0.2.3", | ||
"karma-firefox-launcher": "^1.0.0", | ||
"karma-chrome-launcher": "2.2.0", | ||
"karma-coverage-istanbul-reporter": "^1.3.0", | ||
"karma-firefox-launcher": "^1.1.0", | ||
"karma-mocha": "1.3.0", | ||
"karma-phantomjs-launcher": "^1.0.2", | ||
"karma-phantomjs-launcher": "^1.0.4", | ||
"karma-sinon": "1.0.5", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-spec-reporter": "0.0.30", | ||
"karma-webpack": "2.0.2", | ||
"mocha": "3.2.0", | ||
"karma-spec-reporter": "0.0.32", | ||
"karma-webpack": "2.0.9", | ||
"mocha": "4.0.1", | ||
"phantomjs-polyfill-find-index": "^1.0.1", | ||
"raf-stub": "^2.0.0", | ||
"sinon": "1.17.7", | ||
"webpack": "2.2.1", | ||
"webpack-dev-server": "2.4.1" | ||
"raf-stub": "^2.0.1", | ||
"sinon": "4.1.3", | ||
"webpack": "3.10.0", | ||
"webpack-dev-server": "2.9.7" | ||
}, | ||
"dependencies": { | ||
"eventemitter3": "2.0.2", | ||
"raf": "3.3.0" | ||
"eventemitter3": "3.0.0", | ||
"raf": "3.4.0" | ||
} | ||
} |
@@ -84,3 +84,3 @@ # StepperJS | ||
```html | ||
<script type="text/javascript" src="stepperjs.browser-0.1.4.min.js"></script> | ||
<script type="text/javascript" src="stepperjs.browser-0.1.5.min.js"></script> | ||
``` | ||
@@ -87,0 +87,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
48731
39
601
+ Addedeventemitter3@3.0.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedraf@3.4.0(transitive)
- Removedeventemitter3@2.0.2(transitive)
- Removedperformance-now@0.2.0(transitive)
- Removedraf@3.3.0(transitive)
Updatedeventemitter3@3.0.0
Updatedraf@3.4.0