From 57fe0a3f3d491310b7d175f16ebcb62f9a720976 Mon Sep 17 00:00:00 2001 From: vitalets <noginsk@rambler.ru> Date: Tue, 5 Feb 2013 00:31:49 +0400 Subject: [PATCH] fix lint warns --- src/inputs-ext/address/address.js | 4 +++- src/inputs/typeahead.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/inputs-ext/address/address.js b/src/inputs-ext/address/address.js index 5477d64..c336d87 100644 --- a/src/inputs-ext/address/address.js +++ b/src/inputs-ext/address/address.js @@ -111,7 +111,9 @@ $(function(){ @param {mixed} value **/ value2input: function(value) { - if(!value) return; + if(!value) { + return; + } this.$input.filter('[name="city"]').val(value.city); this.$input.filter('[name="street"]').val(value.street); this.$input.filter('[name="building"]').val(value.building); diff --git a/src/inputs/typeahead.js b/src/inputs/typeahead.js index dc6d7e1..8f1ba36 100644 --- a/src/inputs/typeahead.js +++ b/src/inputs/typeahead.js @@ -139,7 +139,7 @@ $(function(){ /* Typeahead option methods used as defaults */ - /*jshint eqeqeq:false, curly: false, laxcomma: true*/ + /*jshint eqeqeq:false, curly: false, laxcomma: true, asi: true*/ matcher: function (item) { return $.fn.typeahead.Constructor.prototype.matcher.call(this, item.text); }, @@ -235,7 +235,7 @@ $(function(){ e.stopPropagation() } - /*jshint eqeqeq: true, curly: true, laxcomma: false*/ + /*jshint eqeqeq: true, curly: true, laxcomma: false, asi: false*/ });