Skip to content

Instantly share code, notes, and snippets.

@cimfalab
Created August 11, 2017 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cimfalab/bca1fdcbae21975ea7809d288d5235b0 to your computer and use it in GitHub Desktop.
Save cimfalab/bca1fdcbae21975ea7809d288d5235b0 to your computer and use it in GitHub Desktop.
number_utils.js
validateInteger : function(str, min, max) {
if (str==null || str==undefined || (str + "").trim().length < 1) {
return Em.I18n.t('number.validate.empty');
} else {
...
}
return null;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment