diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index 1864f3bfe..17d6207ea 100644 --- a/src/definitions/behaviors/form.js +++ b/src/definitions/behaviors/form.js @@ -1196,7 +1196,7 @@ $.fn.form.settings = { max, parts ; - if(range === undefined || range === '' || range === '..') { + if( !range || ['', '..'].indexOf(range) !== -1) { // do nothing } else if(range.indexOf('..') == -1) {