fix lint errors

This commit is contained in:
vitalets
2013-01-10 23:26:40 +04:00
parent 473a9d9126
commit 825f610988
3 changed files with 9 additions and 7 deletions
grunt.js
src/inputs/combodate

@ -159,8 +159,7 @@ module.exports = function(grunt) {
'src/inputs/date/*.js', 'src/inputs/date/*.js',
'src/inputs/dateui/*.js', 'src/inputs/dateui/*.js',
'src/inputs/wysihtml5/*.js', 'src/inputs/wysihtml5/*.js',
'src/inputs/combodate/combodate.js', 'src/inputs/combodate/*.js',
'src/inputs/combodate/lib/combodate.js',
'src/inputs-ext/**/*.js' 'src/inputs-ext/**/*.js'
] ]
}, },

@ -32,6 +32,9 @@ $(function(){
}); });
</script> </script>
**/ **/
/*global moment*/
(function ($) { (function ($) {
var Constructor = function (options) { var Constructor = function (options) {
@ -165,7 +168,7 @@ $(function(){
} }
**/ **/
combodate: { combodate: {
}, }
/* /*
(not implemented yet) (not implemented yet)

@ -61,8 +61,8 @@
//first pass //first pass
$.each(this.map, function(k, v) { $.each(this.map, function(k, v) {
var v = v[0], v = v[0];
r = new RegExp(v+'+'), var r = new RegExp(v+'+'),
token = v.length > 1 ? v.substring(1, 2) : v; token = v.length > 1 ? v.substring(1, 2) : v;
tpl = tpl.replace(r, '{'+token+'}'); tpl = tpl.replace(r, '{'+token+'}');
@ -73,8 +73,8 @@
//second pass //second pass
$.each(this.map, function(k, v) { $.each(this.map, function(k, v) {
var v = v[0], v = v[0];
token = v.length > 1 ? v.substring(1, 2) : v; var token = v.length > 1 ? v.substring(1, 2) : v;
tpl = tpl.replace('{'+token+'}', '<select class="'+k+'"></select>'); tpl = tpl.replace('{'+token+'}', '<select class="'+k+'"></select>');
}); });