From 50edb0c34d4b7bf9227695ea8d840f7903fd7570 Mon Sep 17 00:00:00 2001 From: Greg Allen Date: Thu, 5 Feb 2015 15:41:50 -0800 Subject: [PATCH] default opts to object --- lib/framejax.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/framejax.js b/lib/framejax.js index 0e6c0d8..8734102 100644 --- a/lib/framejax.js +++ b/lib/framejax.js @@ -13,6 +13,8 @@ }; $.fn.framejax = function(opts) { + opts = opts || {}; + var validate = opts.validate || function() { return true; };