a3456b7e1c
* Adds `bind`, `isFinite`, and `isNumber` utility functions from lodash. * Use new util funtions instead of lodash throughout the codebase. * Remove lodash from vendor builds.
16 lines
311 B
JavaScript
16 lines
311 B
JavaScript
function init() {
|
|
// Provide a few custom validators
|
|
//
|
|
validator.extend('empty', function (str) {
|
|
return Ember.isBlank(str);
|
|
});
|
|
|
|
validator.extend('notContains', function (str, badString) {
|
|
return str.indexOf(badString) === -1;
|
|
});
|
|
}
|
|
|
|
export default {
|
|
init: init
|
|
};
|