Skip to content

Commit

Permalink
Release v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ruyadorno committed Jan 30, 2015
1 parent 49590a8 commit 0a6194d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SimpleSlider
============

version: 0.4.1-rc
version: 0.5.0

[![Build Status](https://travis-ci.org/ruyadorno/SimpleSlider.png?branch=develop)](https://travis-ci.org/ruyadorno/SimpleSlider)

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SimpleSlider",
"version": "0.4.1-rc",
"version": "0.5.0",
"description": "A simple javascript slider without any dependencies",
"homepage": "http://ruyadorno.github.io/SimpleSlider/",
"authors": [
Expand Down
9 changes: 9 additions & 0 deletions dist/simpleslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
this.endVal = parseInt(getdef(options.endValue, width + this.unit), 10);
this.autoPlay = getdef(parseStringToBoolean(options.autoPlay), true);
this.ease = getdef(options.ease, SimpleSlider.defaultEase);
this.onChange = getdef(options.onChange, null);

this.init();
};
Expand Down Expand Up @@ -378,11 +379,19 @@

SimpleSlider.prototype.change = function(newIndex){

var prevIndex = this.actualIndex;

this.remove(this.actualIndex);
this.insert(newIndex);

this.actualIndex = newIndex;

if (this.onChange ||
Object.prototype.toString.call(this.onChange) == '[object Function]') {

this.onChange(prevIndex, this.actualIndex);
}

};

SimpleSlider.prototype.next = function(){
Expand Down
2 changes: 1 addition & 1 deletion dist/simpleslider.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-slider",
"version": "0.4.1-rc",
"version": "0.5.0",
"description": "A simple javascript slider without any dependencies",
"scripts": {
"test": "grunt jasmine:dev"
Expand Down

0 comments on commit 0a6194d

Please sign in to comment.