Skip to content

Commit

Permalink
v2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
josex2r committed Feb 9, 2016
1 parent a377063 commit 5737611
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jQuery-SlotMachine",
"description": "A simple jQuery plugin to make slot machine animation effect",
"version": "2.3.0",
"version": "2.3.1",
"keywords": [
"slots",
"gambling",
Expand Down
46 changes: 23 additions & 23 deletions dist/jquery.slotmachine.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*! SlotMachine - v2.3.0 - 2016-02-02
/*! SlotMachine - v2.3.1 - 2016-02-09
* https://github.com/josex2r/jQuery-SlotMachine
* Copyright (c) 2016 Jose Luis Represa; Licensed MIT */
'use strict';

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

/*
* jQuery Slot Machine v2.1.0
* jQuery Slot Machine v2.3.1
* https:// github.com/josex2r/jQuery-SlotMachine
*
* Copyright 2014 Jose Luis Represa
Expand Down Expand Up @@ -66,7 +66,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
});
}

var Timer = function () {
var Timer = (function () {
function Timer(cb, delay) {
_classCallCheck(this, Timer);

Expand All @@ -86,9 +86,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
_createClass(Timer, [{
key: '_start',
value: function _start() {
this.timer = setTimeout(function cb() {
this.timer = setTimeout((function cb() {
this.cb.call(this);
}.bind(this), this.delay);
}).bind(this), this.delay);
}
}, {
key: 'cancel',
Expand Down Expand Up @@ -131,7 +131,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}]);

return Timer;
}();
})();

/**
* @desc Class - Makes Slot Machine animation effect
Expand All @@ -140,7 +140,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* @return jQuery node - Returns jQuery selector with some new functions (shuffle, stop, next, auto, active)
*/

var SlotMachine = function () {
var SlotMachine = (function () {
function SlotMachine(element, options) {
_classCallCheck(this, SlotMachine);

Expand Down Expand Up @@ -400,7 +400,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
} else {
this.$container.animate({
marginTop: this.direction.to
}, delay, 'linear', function cb() {
}, delay, 'linear', (function cb() {
// Reset top position
this._marginTop = this.direction.first;

Expand All @@ -410,7 +410,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
// Repeat animation
this.shuffle(spins - 1);
}
}.bind(this));
}).bind(this));
}

return this.futureActive;
Expand Down Expand Up @@ -465,7 +465,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
// Perform animation
this.$container.animate({
marginTop: this.getTileOffset(this.active)
}, delay, 'easeOutBounce', function cb() {
}, delay, 'easeOutBounce', (function cb() {

this.stopping = false;
this.running = false;
Expand All @@ -477,13 +477,13 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
if (typeof this._oncompleteStack[1] === 'function') {
this._oncompleteStack[1].apply(this, [this.active]);
}
}.bind(this));
}).bind(this));

// Disable blur
this.raf(function cb() {
this.raf((function cb() {
this._fade = false;
this._animationFX = FX_STOP;
}.bind(this), delay / 1.75);
}).bind(this), delay / 1.75);

return this.active;
}
Expand All @@ -496,20 +496,20 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
key: 'auto',
value: function auto() {
if (!this.running) {
this._timer = new Timer(function cb() {
this._timer = new Timer((function cb() {
if (typeof this.settings.randomize !== 'function') {
this.futureActive = this.next;
}
if (!this.visible && this.settings.stopHidden === true) {
this.raf(function cb2() {
this.raf((function cb2() {
this._timer.reset();
}.bind(this), 500);
}).bind(this), 500);
} else {
this.shuffle(this.settings.spins, function cb2() {
this.shuffle(this.settings.spins, (function cb2() {
this._timer.reset();
}.bind(this));
}).bind(this));
}
}.bind(this), this.settings.auto);
}).bind(this), this.settings.auto);
}
}

Expand Down Expand Up @@ -702,15 +702,15 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var delay = this.settings.delay / 4,
$elements = this.$slot.add(this.$tiles);

this.raf(function cb() {
this.raf((function cb() {
this._fxClass = FX_SPEED;

if (this.fade !== true || FX_SPEED === FX_STOP) {
$elements.removeClass(FX_GRADIENT);
} else {
$elements.addClass(FX_GRADIENT);
}
}.bind(this), delay);
}).bind(this), delay);
}

/**
Expand All @@ -726,7 +726,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}]);

return SlotMachine;
}();
})();

/*
* Create new plugin instance if needed and return it
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.slotmachine.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-slotmachine",
"version": "2.3.0",
"version": "2.3.1",
"engines": {
"node": ">= 0.8.0"
},
Expand Down
2 changes: 1 addition & 1 deletion slotmachine.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"winning",
"machine"
],
"version": "2.3.0",
"version": "2.3.1",
"download": "https://github.com/josex2r/jQuery-SlotMachine",
"homepage": "https://github.com/josex2r/jQuery-SlotMachine",
"demo": "http://josex2r.github.io/jQuery-SlotMachine/",
Expand Down
2 changes: 1 addition & 1 deletion src/jquery.slotmachine.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* jQuery Slot Machine v2.1.0
* jQuery Slot Machine v2.3.1
* https:// github.com/josex2r/jQuery-SlotMachine
*
* Copyright 2014 Jose Luis Represa
Expand Down

0 comments on commit 5737611

Please sign in to comment.