Permalink
Browse files

Fixed: Allow user to pass in optional arguments object, closes #4

  • Loading branch information...
1 parent b3855d4 commit 242c668abb8dde9cbe4b5ad87d1cc534f681bd05 @tommoor committed Dec 15, 2012
Showing with 7 additions and 4 deletions.
  1. +4 −1 js/jquery.crumble.js
  2. +3 −3 js/jquery.crumble.min.js
View
@@ -3,7 +3,7 @@
* Tom Moor, http://tommoor.com
* Copyright (c) 2012 Tom Moor
* MIT Licensed
- * @version 0.2
+ * @version 0.3
*/
(function($){
@@ -81,6 +81,9 @@ var Crumble = function(){
var methods = {
init: function(o){
+ // allow user to pass in an object and overwrite default args
+ defaults = $.extend(defaults, o);
+
// parse setup
$('li', this).each(function(index, stop){
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 242c668

Please sign in to comment.