jquery.geocomplete.js
function GeoComplete(input, options) {

    this.options = $.extend(true, {}, defaults, options);

    // This is a fix to allow types:[] not to be overridden by defaults
    // so search results includes everything
    if (options && options.types) {
      this.options.types = options.types;
    }

    this.input = input;
    this.$input = $(input);

    this._defaults = defaults;
    this._name = 'geocomplete';

    this.init();
  }
function GeoComplete(input, options) {

    this.options = $.extend(true, {}, defaults, options);

    // This is a fix to allow types:[] not to be overridden by defaults
    // so search results includes everything
    if (options && options.types) {
      this.options.types = options.types;
    }

    this.input = input;
    this.$input = $(input);

    this._defaults = defaults;
    this._name = 'geocomplete';

    this.init();
  }
function GeoComplete ( input , options ) { this . options = $ . extend ( true , { } , defaults , options ) ; // This is a fix to allow types:[] not to be overridden by defaults // so search results includes everything if ( options && options . types ) { this . options . types = options . types ; } this . input = input ; this . $input = $ ( input ) ; this . _defaults = defaults ; this . _name = 'geocomplete' ; this . init ( ) ; }
The actual plugin constructor.
The actual plugin constructor .