Skip to content

Commit

Permalink
1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhellsing committed Nov 1, 2013
1 parent 09a5985 commit c29e364
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/galleria.js
@@ -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
Expand All @@ -21,7 +21,7 @@ var window = this,
protoArray = Array.prototype,

// internal constants
VERSION = 1.31,
VERSION = 1.32,
DEBUG = true,
TIMEOUT = 30000,
DUMMY = false,
Expand Down Expand Up @@ -2554,6 +2554,7 @@ Galleria.prototype = {
transitionSpeed: 400,
trueFullscreen: true, // 1.2.7
useCanvas: false, // 1.2.4
variation: '', // 1.3.1
videoPoster: true, // 1.3
vimeo: {
title: 0,
Expand Down Expand Up @@ -2769,7 +2770,7 @@ Galleria.prototype = {
Utils.hide( self.get('tooltip') );

// add a notouch class on the container to prevent unwanted :hovers on touch devices
this.$( 'container' ).addClass( Galleria.TOUCH ? 'touch' : 'notouch' );
this.$( 'container' ).addClass( ( Galleria.TOUCH ? 'touch' : 'notouch' ) + ' ' + this._options.variation );

// add images to the controls
if ( !this._options.swipe ) {
Expand Down Expand Up @@ -4199,6 +4200,16 @@ Galleria.prototype = {
return this;
},

/**
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.
Expand Down

0 comments on commit c29e364

Please sign in to comment.