Skip to content
This repository has been archived by the owner on May 7, 2018. It is now read-only.

Commit

Permalink
Update jquery.cropbox.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bupy7 committed Sep 12, 2015
1 parent da154bb commit 2495151
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/jquery.cropbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,11 +475,11 @@

$.fn.cropbox = function(options) {
if (methods[options]) {
return methods[options].apply(this, Array.prototype.slice.call(arguments, 1));
} else if (typeof options === 'object' || ! options) {
return methods.init.apply(this, arguments);
} else {
$.error('Method "' + options + '" not exists.');
}
return methods[options].apply(this, Array.prototype.slice.call(arguments, 1));
} else if (typeof options === 'object' || ! options) {
return methods.init.apply(this, arguments);
} else {
$.error('Method "' + options + '" not exists.');
}
};
})(jQuery);

0 comments on commit 2495151

Please sign in to comment.