widget/form/form-input-location.js
Function constructor
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function (
name, value, required, validations, useCurrentPosition, submitOnChange, initFromQueryString, autocomplete) {
FormInputLocation.$super.call(this, name, value, required, validations, submitOnChange, initFromQueryString);
this.currentPosition = ko.observable(null);
Function getCurrentPosition
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getCurrentPosition: function (successCallback, errCallback) {
if (this.geolocationAvailable) {
this.gettingCurrentPosition(true);
this.currentPosition(null);
navigator.geolocation.getCurrentPosition(
Function constructor
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
name, value, required, validations, useCurrentPosition, submitOnChange, initFromQueryString, autocomplete) {