Typeof null === 'object'

This commit is contained in:
Spencer Alger 2014-05-21 14:42:19 -07:00
parent 7c4fb49e9e
commit 45b0ab75aa

View file

@ -28,7 +28,7 @@ define(function (require) {
var params;
// Must get an object for this one
if (typeof opts !== 'object') return;
if (!_.isObject(opts)) return;
vis.typeName = opts.type || 'histogram';
vis.params = _.cloneDeep(opts.params);