Skip to content

Commit

Permalink
style(animations): fix jshint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed May 14, 2014
1 parent c72ab88 commit fece132
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 82 deletions.
18 changes: 9 additions & 9 deletions js/angular/service/animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,30 @@
* var anim = $ionicAnimate({
* // A unique, reusable name
* name: 'popIn',
*
*
* // The duration of an auto playthrough
* duration: 0.5,
*
*
* // How long to wait before running the animation
* delay: 0,
*
*
* // Whether to reverse after doing one run through
* autoReverse: false,
*
*
* // How many times to repeat? -1 or null for infinite
* repeat: -1,
*
*
* // Timing curve to use (same as CSS timing functions), or a function of time "t" to handle it yourself
* curve: 'ease-in-out'
*
*
* onStart: function() {
* // Callback on start
* },
* onEnd: function() {
* // Callback on end
* },
* step: function(amt) {
*
*
* }
* })
* });
Expand All @@ -60,6 +60,6 @@ IonicModule
return function(opts) {
opts.useSlowAnimations = useSlowAnimations;
return ionic.Animation.create(opts);
}
}]
};
}];
});
2 changes: 1 addition & 1 deletion js/animation/animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
var tf;

if(typeof opts.curve === 'string') {
tf = ionic.Animation.TimingFn[opts.curve] || ionic.Animation.TimingFn['linear'];
tf = ionic.Animation.TimingFn[opts.curve] || ionic.Animation.TimingFn.linear;
if(opts.curve.indexOf('cubic-bezier(') >= 0) {
var parts = opts.curve.replace('cubic-bezier(', '').replace(')', '').split(',');
tf = ionic.Animation.TimingFn['cubic-bezier'];
Expand Down
Loading

0 comments on commit fece132

Please sign in to comment.