Permalink
Browse files

Ensure there are options

  • Loading branch information...
1 parent f934eb4 commit e28dcad4b6ed39668e22506b3058873561835baf @bergie committed Sep 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Entity.js
View
@@ -207,7 +207,7 @@ VIE.prototype.Entity = function(attrs, opts) {
// * `options.silent = true`
// * `options.validate = false`
validate: function (attrs, opts) {
- if (opts.validate === false) {
+ if (opts && opts.validate === false) {
return;
}
var types = this.get('@type');

0 comments on commit e28dcad

Please sign in to comment.