Commits

nakamura committed e9ce02c

chat.js: always call `validate` on Bookmarks model

Comments (0)

Files changed (1)

tai/service/static/js/chat.js

             };
         });
     },
+
+    _validate: function(attrs, options) {
+        // because I don't call `save` method,
+        // validate attrs on `set` using `validate` option
+        options = _.extend({validate: true}, options);
+        return Backbone.Model.prototype._validate.call(this, attrs, options);
+    }
 });