Skip to content

Instantly share code, notes, and snippets.

@taylor-smith
Created September 10, 2014 14:30
Show Gist options
  • Save taylor-smith/fd5c1ca2d4f60a6c6aeb to your computer and use it in GitHub Desktop.
Save taylor-smith/fd5c1ca2d4f60a6c6aeb to your computer and use it in GitHub Desktop.
validate: function(attrs, options){
if (attrs.data[0].value === null ||
attrs.data[1].value === null ||
attrs.data[2].value === null ||
attrs.data[3].value === null ||
attrs.data[4].value === null ||
attrs.data[5].value === null ||
attrs.data[6].value === null ||
attrs.data[7].value === null ||
attrs.data[8].value === null ||
attrs.data[9].value === null || ){
return "Can't save depictions with null attributes";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment