Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

assign empty object when options undefined. fixes #4

  • Loading branch information...
commit eb4117d744b5ca49f62a60a33b0bd1713138c9db 1 parent 2752ae7
Shawn Chin authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  cron/jquery-cron.js
3  cron/jquery-cron.js
View
@@ -258,9 +258,10 @@
// ------------------- PUBLIC METHODS -----------------
var methods = {
- init : function(options) {
+ init : function(opts) {
// init options
+ var options = opts ? opts : {}; /* default to empty obj */
var o = $.extend([], defaults, options);
var eo = $.extend({}, defaults.effectOpts, options.effectOpts);
$.extend(o, {
Please sign in to comment.
Something went wrong with that request. Please try again.