Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Commit

Permalink
Merge pull request #231 from jakeauyeung/master
Browse files Browse the repository at this point in the history
fix return this.Tweenable is undefined
  • Loading branch information
Julien Bouquillon committed Oct 20, 2014
2 parents 6b50661 + ddfae39 commit 300ec23
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/directives/shifty.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ angular.module('angular-carousel.shifty', [])

.factory('Tweenable', function() {

(function (root) {
(function (root, window) {
/*!
* Shifty Core
* By Jeremy Kahn - [email protected]
Expand Down Expand Up @@ -456,7 +456,8 @@ angular.module('angular-carousel.shifty', [])
return Tweenable;

} ());


window.Tweenable = Tweenable;
/*!
* All equations are adapted from Thomas Fuchs' [Scripty2](https://github.com/madrobby/scripty2/blob/master/src/effects/transitions/penner.js).
*
Expand Down Expand Up @@ -1377,7 +1378,7 @@ angular.module('angular-carousel.shifty', [])

} (Tweenable));

}(this));
}(this, window));

return this.Tweenable;
return window.Tweenable;
});

0 comments on commit 300ec23

Please sign in to comment.