summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/view
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-25 06:40:41 -0500
committerJules Laplace <jules@okfoc.us>2015-11-25 06:40:41 -0500
commitdbf94970c029eda68564ebc9a6129a778caacf4a (patch)
tree732d2cc54471aae7f204a5daee564465cbbf4818 /StoneIsland/www/js/lib/view
parentc0eff609a1d882c9246a4c38627b7c343faf92cb (diff)
address form stuff..
Diffstat (limited to 'StoneIsland/www/js/lib/view')
-rw-r--r--StoneIsland/www/js/lib/view/Serializable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/view/Serializable.js b/StoneIsland/www/js/lib/view/Serializable.js
index e3ef123c..72978985 100644
--- a/StoneIsland/www/js/lib/view/Serializable.js
+++ b/StoneIsland/www/js/lib/view/Serializable.js
@@ -65,7 +65,7 @@ var SerializableView = View.extend({
validate: function(errors){
var data = this.serialize()
var errors = []
- var presence_msgs = this.validate_presence
+ var presence_msgs = this.validate_presence || {}
Object.keys(presence_msgs).forEach(function(k){
if (! data[k]) errors.push( [ k, presence_msgs[k] ] )
})