Browse Source

Update dash.js

typeof in validation of title was missing.
pull/13/head
Robert Prediger 11 years ago
parent
commit
c8898a9c62
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/api/dash.js

+ 1
- 1
lib/api/dash.js View File

@ -5,7 +5,7 @@ var validate_dashboard = function(dashboard){
throw new Error('`dashboard` parameter must be an object'); throw new Error('`dashboard` parameter must be an object');
} }
if(dashboard['title'] != 'string'){
if(typeof dashboard['title'] != 'string'){
throw new Error('`dashboard["title"]` must be a string'); throw new Error('`dashboard["title"]` must be a string');
} }


Loading…
Cancel
Save