Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't clobber previously configured values with configure(); fixes #74

  • Loading branch information...
commit f5262799772618cf135a6914840de2e0d4170279 1 parent 12fac7a
David Chester dchester authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/js/Rickshaw.Graph.js
4 src/js/Rickshaw.Graph.js
View
@@ -187,7 +187,9 @@ Rickshaw.Graph = function(args) {
}
Rickshaw.keys(this.defaults).forEach( function(k) {
- this[k] = args[k] || this.defaults[k];
+ this[k] = k in args ? args[k]
+ : k in this ? this[k]
+ : this.defaults[k];
}, this );
this.setRenderer(args.renderer || this.renderer.name, args);
Please sign in to comment.
Something went wrong with that request. Please try again.