Permalink
Browse files

Improve _debug function. Fix #234

  • Loading branch information...
1 parent 0f97d92 commit bf989cec1c9078d6da88183da20e655bb3bc7c6d @nyroDev committed Oct 16, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 js/jquery.nyroModal.js
@@ -414,7 +414,7 @@ jQuery(function($, undefined) {
// - prm: Parameter to be used in callback
// return an array of all return of callbacks; keys are filters name
_callFilters: function(fct, prm) {
- this.getInternal()._debug(fct);
+ this.getInternal()._debug(fct, prm);
var ret = [],
self = this;
$.each(this.filters, function(i, f) {
@@ -441,7 +441,7 @@ jQuery(function($, undefined) {
// - fct: Animation function name
// - clb: Callback once the animation is done
_callAnim: function(fct, clb) {
- this.getInternal()._debug(fct);
+ this.getInternal()._debug(fct, clb);
this._callFilters('before'+ucfirst(fct));
if (!this._animated) {
this._animated = true;
@@ -654,9 +654,9 @@ jQuery(function($, undefined) {
return undefined;
},
- _debug: function(msg) {
+ _debug: function() {
if (this.debug && window.console && window.console.log)
- window.console.log(msg);
+ window.console.log.apply(window.console, arguments);
},
_container: undefined,

0 comments on commit bf989ce

Please sign in to comment.