Easing Slider - Version 2.2.1.1

Version Description

  • Fixed Maximum call stack exceeded bug encountered when displaying multiple sliders on a single page.
Download this release

Release Info

Developer MatthewRuddy
Plugin Icon 128x128 Easing Slider
Version 2.2.1.1
Comparing to
See all releases

Code changes from version 2.2.1 to 2.2.1.1

easing-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Easing Slider
5
  Plugin URI: http://easingslider.com/
6
- Version: 2.2.1
7
  Author: Matthew Ruddy
8
  Author URI: http://matthewruddy.com/
9
  Description: Easing Slider is an easy to use slider plugin for WordPress. Simple, lightweight & designed to get the job done, it allows you to get creating sliders without any difficulty.
@@ -50,7 +50,7 @@ class Easing_Slider {
50
  *
51
  * @var string
52
  */
53
- public static $version = '2.2.1';
54
 
55
  /**
56
  * Our plugin file
3
  /*
4
  Plugin Name: Easing Slider
5
  Plugin URI: http://easingslider.com/
6
+ Version: 2.2.1.1
7
  Author: Matthew Ruddy
8
  Author URI: http://matthewruddy.com/
9
  Description: Easing Slider is an easy to use slider plugin for WordPress. Simple, lightweight & designed to get the job done, it allows you to get creating sliders without any difficulty.
50
  *
51
  * @var string
52
  */
53
+ public static $version = '2.2.1.1';
54
 
55
  /**
56
  * Our plugin file
js/jquery.easingslider.js CHANGED
@@ -212,7 +212,7 @@
212
  base.$viewport.css({ 'height': height +'px' });
213
 
214
  // Trigger event
215
- base.$el.trigger('resize', [base, width, height]);
216
 
217
  }
218
 
212
  base.$viewport.css({ 'height': height +'px' });
213
 
214
  // Trigger event
215
+ base.$el.trigger('size.update', [base, width, height]);
216
 
217
  }
218
 
js/jquery.easingslider.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){e.EasingSlider=function(i){var n,a=this;a.el=i,a.$el=e(a.el),a.$viewport=a.$el.find(".easingslider-viewport"),a.$slides=a.$el.find(".easingslider-slide"),a.$arrows=a.$el.find(".easingslider-arrows"),a.$next=a.$el.find(".easingslider-next"),a.$prev=a.$el.find(".easingslider-prev"),a.$pagination=a.$el.find(".easingslider-pagination"),a.$icons=a.$el.find(".easingslider-icon"),a.$preload=a.$el.find(".easingslider-preload"),a.options=n=e.extend({},e.EasingSlider.defaults,e.parseJSON(a.$el.attr("data-options"))),a.current=0,a.previous=0,a.count=a.$slides.length,a.width=n.dimensions.width,a.height=n.dimensions.height,a.$el.data("easingslider",a),a.initialize=function(){return a._clickEvent="ontouchstart"in document.documentElement?"touchstart":"click",a.$slides.css({display:"none"}),a.$slides.eq(a.current).css({display:"block"}).addClass("active"),a._setupArrows(),a._setupPagination(),a._setupPlayback(),a._setupResizing(),a._setupBackgrounds(),a._preload(),a.$el.trigger("init",a),a},a._setupArrows=function(){return n.navigation.arrows&&(a.$next.bind(a._clickEvent,a.nextSlide),a.$prev.bind(a._clickEvent,a.prevSlide),n.navigation.arrows_hover&&a.$arrows.addClass("has-hover"),a.$arrows.css({display:"block"})),a},a._setupPagination=function(){return n.navigation.pagination&&(a.$el.bind("loaded",a._updatePagination),a.$el.bind("transition.before",a._updatePagination),a.$icons.bind(a._clickEvent,function(){var i=e(this).index(),n=i>a.current?"forward":"backward";a.goToSlide(i,n)}),n.navigation.pagination_hover&&a.$pagination.addClass("has-hover"),a.$pagination.css({display:"block"})),a},a._updatePagination=function(){return n.navigation.pagination&&a.$icons.removeClass("active").eq(a.current).addClass("active"),a},a._setupPlayback=function(){return a.$el.bind("transition.before",function(){a._playbackTimer&&clearTimeout(a._playbackTimer)}),a.$el.bind("transition.after",function(){a._playbackTimer&&a.startPlayback()}),n.playback.enabled&&a.count>1&&a.$el.bind("loaded",a.startPlayback),a},a._setupResizing=function(){return n.dimensions.responsive&&(a._updateSize(),e(window).bind("resize",a._updateSize)),a},a._updateSize=function(){var e=a.$el.outerWidth();if(e<=a.width&&n.dimensions.keep_ratio){var i=Math.floor(e/a.width*a.height);a.$viewport.css({height:i+"px"}),a.$el.trigger("resize",[a,e,i])}return a},a._setupBackgrounds=function(){n.dimensions.background_images&&a.$slides.each(function(){var i=e(this),n=i.find(".easingslider-image");i.addClass("easingslider-background-slide").css({"background-image":"url("+n.attr("src")+")"}),n.css({display:"none"})})},a._preload=function(){var i=a.$slides.find(".easingslider-image").length;a._preloadCount=0,a.$el.find(".easingslider-image").each(function(){e(this).one("load",function(){++a._preloadCount==i&&a.$preload.animate({opacity:0},{duration:400,complete:function(){e(this).remove(),a.$el.addClass("has-loaded"),a.$el.trigger("loaded",a)}})}).each(function(){this.complete&&e(this).load()})})},a._load=function(){a._preloadCount++;var i=a.$slides.find(".easingslider-image").length;a._preloadCount==i&&a.$preload.animate({opacity:0},{duration:400,complete:function(){e(this).remove(),a.$el.addClass("has-loaded"),a.$el.trigger("loaded",a)}})},a.startPlayback=function(){return a._runtime=new Date,a._pauseTime=n.playback.pause,a._playbackTimer=setTimeout(function(){a.nextSlide()},a._pauseTime),a.$el.trigger("playback.start",a),a},a.endPlayback=function(){return clearTimeout(a._playbackTimer),a._playbackTimer=!1,a.$el.trigger("playback.end",a),a},a.pausePlayback=function(){return clearTimeout(a._playbackTimer),a._runtime=Math.ceil(new Date-a._runtime),a.$el.trigger("playback.pause",a),a},a.resumePlayback=function(){return a._pauseTime=Math.ceil(a._pauseTime-a._runtime),a._runtime=new Date,a._playbackTimer=setTimeout(function(){a.nextSlide()},a._pauseTime),a.$el.trigger("playback.resume",a),a},a._transition=function(e,i){return a.count<=1?a:0==a.$slides.eq(e).length?a:a._animating?a:(a._animating=!0,a.previous=a.current,a.current=e,"backward"==i?(a.$slides.eq(a.previous).css({display:"block"}),a.$slides.eq(a.current).css({display:"block"}),setTimeout(function(){a.$slides.eq(a.previous).addClass("next-out"),a.$slides.eq(a.current).addClass("prev-in")})):(a.$slides.eq(a.previous).css({display:"block"}),a.$slides.eq(a.current).css({display:"block"}),setTimeout(function(){a.$slides.eq(a.previous).addClass("prev-out"),a.$slides.eq(a.current).addClass("next-in")})),clearTimeout(a._cleanup),a._cleanup=setTimeout(function(){a.$slides.eq(a.current).css({display:"block"}).addClass("active"),a.$slides.eq(a.previous).css({display:"none"}).removeClass("active"),a.$slides.removeClass("next-in next-out prev-in prev-out"),a._animating=!1,a.$el.trigger("transition.after",[a,e,i])},n.transitions.duration),a.$el.trigger("transition.before",[a,e,i]),a)},a.nextSlide=function(){var e=a.current==a.count-1?0:a.current+1;return a._transition(e,"forward"),a.$el.trigger("transition.next",[a,e,"forward"]),a},a.prevSlide=function(){var e=0==a.current?a.count-1:a.current-1;return a._transition(e,"backward"),a.$el.trigger("transition.prev",[a,e,"backward"]),a},a.goToSlide=function(e,i){return this._transition(e,i),a.$el.trigger("transition.to",[a,e,i]),a},a.initialize()},e.EasingSlider.defaults={dimensions:{width:640,height:400,responsive:!0,full_width:!1,image_resizing:!1,keep_ratio:!0,background_images:!1},transitions:{effect:"fade",duration:400},navigation:{arrows:!0,arrows_hover:!1,arrows_position:"inside",pagination:!0,pagination_hover:!1,pagination_position:"inside",pagination_location:"bottom-center"},playback:{enabled:!0,pause:4e3}},e.fn.EasingSlider=function(){return this.each(function(){new e.EasingSlider(this)})},e(document).ready(function(){e(".easingslider").EasingSlider()})}(jQuery);
1
+ !function(e){e.EasingSlider=function(i){var n,a=this;a.el=i,a.$el=e(a.el),a.$viewport=a.$el.find(".easingslider-viewport"),a.$slides=a.$el.find(".easingslider-slide"),a.$arrows=a.$el.find(".easingslider-arrows"),a.$next=a.$el.find(".easingslider-next"),a.$prev=a.$el.find(".easingslider-prev"),a.$pagination=a.$el.find(".easingslider-pagination"),a.$icons=a.$el.find(".easingslider-icon"),a.$preload=a.$el.find(".easingslider-preload"),a.options=n=e.extend({},e.EasingSlider.defaults,e.parseJSON(a.$el.attr("data-options"))),a.current=0,a.previous=0,a.count=a.$slides.length,a.width=n.dimensions.width,a.height=n.dimensions.height,a.$el.data("easingslider",a),a.initialize=function(){return a._clickEvent="ontouchstart"in document.documentElement?"touchstart":"click",a.$slides.css({display:"none"}),a.$slides.eq(a.current).css({display:"block"}).addClass("active"),a._setupArrows(),a._setupPagination(),a._setupPlayback(),a._setupResizing(),a._setupBackgrounds(),a._preload(),a.$el.trigger("init",a),a},a._setupArrows=function(){return n.navigation.arrows&&(a.$next.bind(a._clickEvent,a.nextSlide),a.$prev.bind(a._clickEvent,a.prevSlide),n.navigation.arrows_hover&&a.$arrows.addClass("has-hover"),a.$arrows.css({display:"block"})),a},a._setupPagination=function(){return n.navigation.pagination&&(a.$el.bind("loaded",a._updatePagination),a.$el.bind("transition.before",a._updatePagination),a.$icons.bind(a._clickEvent,function(){var i=e(this).index(),n=i>a.current?"forward":"backward";a.goToSlide(i,n)}),n.navigation.pagination_hover&&a.$pagination.addClass("has-hover"),a.$pagination.css({display:"block"})),a},a._updatePagination=function(){return n.navigation.pagination&&a.$icons.removeClass("active").eq(a.current).addClass("active"),a},a._setupPlayback=function(){return a.$el.bind("transition.before",function(){a._playbackTimer&&clearTimeout(a._playbackTimer)}),a.$el.bind("transition.after",function(){a._playbackTimer&&a.startPlayback()}),n.playback.enabled&&a.count>1&&a.$el.bind("loaded",a.startPlayback),a},a._setupResizing=function(){return n.dimensions.responsive&&(a._updateSize(),e(window).bind("resize",a._updateSize)),a},a._updateSize=function(){var e=a.$el.outerWidth();if(e<=a.width&&n.dimensions.keep_ratio){var i=Math.floor(e/a.width*a.height);a.$viewport.css({height:i+"px"}),a.$el.trigger("size.update",[a,e,i])}return a},a._setupBackgrounds=function(){n.dimensions.background_images&&a.$slides.each(function(){var i=e(this),n=i.find(".easingslider-image");i.addClass("easingslider-background-slide").css({"background-image":"url("+n.attr("src")+")"}),n.css({display:"none"})})},a._preload=function(){var i=a.$slides.find(".easingslider-image").length;a._preloadCount=0,a.$el.find(".easingslider-image").each(function(){e(this).one("load",function(){++a._preloadCount==i&&a.$preload.animate({opacity:0},{duration:400,complete:function(){e(this).remove(),a.$el.addClass("has-loaded"),a.$el.trigger("loaded",a)}})}).each(function(){this.complete&&e(this).load()})})},a._load=function(){a._preloadCount++;var i=a.$slides.find(".easingslider-image").length;a._preloadCount==i&&a.$preload.animate({opacity:0},{duration:400,complete:function(){e(this).remove(),a.$el.addClass("has-loaded"),a.$el.trigger("loaded",a)}})},a.startPlayback=function(){return a._runtime=new Date,a._pauseTime=n.playback.pause,a._playbackTimer=setTimeout(function(){a.nextSlide()},a._pauseTime),a.$el.trigger("playback.start",a),a},a.endPlayback=function(){return clearTimeout(a._playbackTimer),a._playbackTimer=!1,a.$el.trigger("playback.end",a),a},a.pausePlayback=function(){return clearTimeout(a._playbackTimer),a._runtime=Math.ceil(new Date-a._runtime),a.$el.trigger("playback.pause",a),a},a.resumePlayback=function(){return a._pauseTime=Math.ceil(a._pauseTime-a._runtime),a._runtime=new Date,a._playbackTimer=setTimeout(function(){a.nextSlide()},a._pauseTime),a.$el.trigger("playback.resume",a),a},a._transition=function(e,i){return a.count<=1?a:0==a.$slides.eq(e).length?a:a._animating?a:(a._animating=!0,a.previous=a.current,a.current=e,"backward"==i?(a.$slides.eq(a.previous).css({display:"block"}),a.$slides.eq(a.current).css({display:"block"}),setTimeout(function(){a.$slides.eq(a.previous).addClass("next-out"),a.$slides.eq(a.current).addClass("prev-in")})):(a.$slides.eq(a.previous).css({display:"block"}),a.$slides.eq(a.current).css({display:"block"}),setTimeout(function(){a.$slides.eq(a.previous).addClass("prev-out"),a.$slides.eq(a.current).addClass("next-in")})),clearTimeout(a._cleanup),a._cleanup=setTimeout(function(){a.$slides.eq(a.current).css({display:"block"}).addClass("active"),a.$slides.eq(a.previous).css({display:"none"}).removeClass("active"),a.$slides.removeClass("next-in next-out prev-in prev-out"),a._animating=!1,a.$el.trigger("transition.after",[a,e,i])},n.transitions.duration),a.$el.trigger("transition.before",[a,e,i]),a)},a.nextSlide=function(){var e=a.current==a.count-1?0:a.current+1;return a._transition(e,"forward"),a.$el.trigger("transition.next",[a,e,"forward"]),a},a.prevSlide=function(){var e=0==a.current?a.count-1:a.current-1;return a._transition(e,"backward"),a.$el.trigger("transition.prev",[a,e,"backward"]),a},a.goToSlide=function(e,i){return this._transition(e,i),a.$el.trigger("transition.to",[a,e,i]),a},a.initialize()},e.EasingSlider.defaults={dimensions:{width:640,height:400,responsive:!0,full_width:!1,image_resizing:!1,keep_ratio:!0,background_images:!1},transitions:{effect:"fade",duration:400},navigation:{arrows:!0,arrows_hover:!1,arrows_position:"inside",pagination:!0,pagination_hover:!1,pagination_position:"inside",pagination_location:"bottom-center"},playback:{enabled:!0,pause:4e3}},e.fn.EasingSlider=function(){return this.each(function(){new e.EasingSlider(this)})},e(document).ready(function(){e(".easingslider").EasingSlider()})}(jQuery);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: MatthewRuddy
4
  Tags: slideshow, slider, slides, slide, gallery, images, image, responsive, mobile, jquery, javascript, featured, content
5
  Requires at least: 4.0
6
  Tested up to: 4.2
7
- Stable tag: 2.2.1
8
 
9
  Easing Slider is an easy to use slider plugin. Simple and lightweight, is makes creating beautiful WordPress sliders a breeze.
10
 
@@ -75,6 +75,9 @@ This is easy. When editing a slider in the "All Sliders" admin area, simply clic
75
 
76
  == Changelog ==
77
 
 
 
 
78
  = 2.2.1 =
79
  * Added support for background images (found inside "Advanced Options" in "Dimensions" settings box).
80
  * Added support for 100% full width sliders (found inside "Advanced Options" in "Dimensions" settings box).
4
  Tags: slideshow, slider, slides, slide, gallery, images, image, responsive, mobile, jquery, javascript, featured, content
5
  Requires at least: 4.0
6
  Tested up to: 4.2
7
+ Stable tag: 2.2.1.1
8
 
9
  Easing Slider is an easy to use slider plugin. Simple and lightweight, is makes creating beautiful WordPress sliders a breeze.
10
 
75
 
76
  == Changelog ==
77
 
78
+ = 2.2.1.1 =
79
+ * Fixed “Maximum call stack exceeded” bug encountered when displaying multiple sliders on a single page.
80
+
81
  = 2.2.1 =
82
  * Added support for background images (found inside "Advanced Options" in "Dimensions" settings box).
83
  * Added support for 100% full width sliders (found inside "Advanced Options" in "Dimensions" settings box).