Skip to content

Commit

Permalink
Fix in fire callback
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed May 6, 2014
1 parent 4303fcc commit 27d3011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idangerous.swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ var Swiper = function (selector, params) {
}
}
} else if (Object.prototype.toString.call(callback) === '[object String]') {
if (params['on' + callback]) _this.fireCallback(params['on' + callback]);
if (params['on' + callback]) _this.fireCallback(params['on' + callback], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
} else {
callback(arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
}
Expand Down

0 comments on commit 27d3011

Please sign in to comment.