Skip to content

Commit

Permalink
No need for separate init(), since it is only called once
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 8, 2013
1 parent aec3325 commit eefe1dd
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions imp/js/prettyautocomplete.js
Expand Up @@ -17,11 +17,10 @@
*/
var IMP_PrettyAutocompleter = Class.create({

// Vars used and defaulting to null/false:
// initialized, p

initialize: function(elt, params)
{
var active;

this.p = Object.extend({
// Outer div/fake input box and CSS class
// box (created below)
Expand All @@ -46,21 +45,6 @@ var IMP_PrettyAutocompleter = Class.create({
elt: $(elt)
}, params || {});

this.init();
},

/**
* Initializes the autocompleter, builds the dom structure, registers
* events...
*/
init: function()
{
var active;

if (this.initialized) {
return;
}

this.p.box = new Element('DIV', { className: this.p.boxClass });

// The input element and the <li> wrapper
Expand Down

0 comments on commit eefe1dd

Please sign in to comment.