Browse Source

Build v2.2.1

Jay Salvat 9 years ago
parent
commit
ef22baa776
7 changed files with 10 additions and 6 deletions
  1. 4 0
      CHANGELOG.md
  2. 1 1
      bower.json
  3. 1 1
      component.json
  4. 2 2
      dist/vegas.js
  5. 1 1
      dist/vegas.min.js
  6. 0 0
      dist/vegas.min.js.map
  7. 1 1
      package.json

+ 4 - 0
CHANGELOG.md

@@ -2,6 +2,10 @@
 
 ## CHANGE LOG
 
+### Vegas 2.2.1 2016-05-04
+
+* Fixed _random to match last item also.
+
 ### Vegas 2.2.0 2016-01-18
 
 * Add cover:repeat option to display background as tiled and not resized #75

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
     "name": "vegas",
-    "version": "2.2.0",
+    "version": "2.2.1",
     "main": [
         "dist/vegas.min.js",
         "dist/vegas.min.css"

+ 1 - 1
component.json

@@ -1,6 +1,6 @@
 {
     "name": "vegas",
-    "version": "2.2.0",
+    "version": "2.2.1",
     "description": "Vegas - Fullscreen Backgrounds and Slideshows.",
     "homepage": "http://vegas.jaysalvat.com",
     "author": "Jay Salvat",

+ 2 - 2
dist/vegas.js

@@ -1,6 +1,6 @@
 /*!-----------------------------------------------------------------------------
  * Vegas - Fullscreen Backgrounds and Slideshows.
- * v2.2.0 - built 2016-01-18
+ * v2.2.1 - built 2016-05-04
  * Licensed under the MIT License.
  * http://vegas.jaysalvat.com/
  * ----------------------------------------------------------------------------
@@ -212,7 +212,7 @@
         },
 
         _random: function (array) {
-            return array[Math.floor(Math.random() * (array.length - 1))];
+            return array[Math.floor(Math.random() * array.length)];
         },
 
         _slideShow: function () {

File diff suppressed because it is too large
+ 1 - 1
dist/vegas.min.js


File diff suppressed because it is too large
+ 0 - 0
dist/vegas.min.js.map


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "vegas",
-  "version": "2.2.0",
+  "version": "2.2.1",
   "description": "Vegas - Fullscreen Backgrounds and Slideshows.",
   "homepage": "http://vegas.jaysalvat.com",
   "author": "Jay Salvat",

Some files were not shown because too many files changed in this diff