Created
September 10, 2014 14:30
-
-
Save taylor-smith/fd5c1ca2d4f60a6c6aeb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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