Permalink
Browse files

merge

  • Loading branch information...
2 parents 2bec31a + c29e364 commit a8d2d2b80028a48f45ff588f4e39411cf40890f1 @davidhellsing davidhellsing committed Nov 4, 2013
Showing with 12 additions and 2 deletions.
  1. +12 −2 src/galleria.js
View
@@ -1,5 +1,5 @@
/**
- * Galleria v 1.3.1 2013-11-28
+ * Galleria v 1.3.2 2013-11-01
* http://galleria.io
*
* Licensed under the MIT license
@@ -21,7 +21,7 @@ var window = this,
protoArray = Array.prototype,
// internal constants
- VERSION = 1.31,
+ VERSION = 1.32,
DEBUG = true,
TIMEOUT = 30000,
DUMMY = false,
@@ -4209,6 +4209,16 @@ Galleria.prototype = {
},
/**
+ Check if a variation exists
+
+ @returns {Boolean} If the variation has been applied
+ */
+
+ hasVariation: function( variation ) {
+ return $.inArray( variation, this._options.variation.split(/\s+/) ) > -1;
+ },
+
+ /**
Get the currently active image element.
@returns {HTMLElement} The image element

0 comments on commit a8d2d2b

Please sign in to comment.