diff --git a/src/js/photos.js b/src/js/photos.js index 6520b23..96d89e7 100644 --- a/src/js/photos.js +++ b/src/js/photos.js @@ -11,7 +11,7 @@ Photos.prototype = { initConfig: function (config) { this.config = $.extend({}, defaults, config); - this.activeIndex = this.lastActiveIndex = this.config.initIndex; + this.activeIndex = this.lastActiveIndex = parseInt(this.config.initIndex); this.config.items = this.config.items.map(function(d, i) { if(typeof d === typeof 'a') {