rem: initialize: function(element, update, url, options) { this.element     = $(element); this.update      = $(update); this.has_focus   = false; this.changed     = false; this.active      = false; this.index       = 0; this.entry_count = 0; this.url         = url;  this.setOptions(options); this.options.asynchronous = true; this.options.onComplete   = this.onComplete.bind(this) this.options.frequency    = this.options.frequency || 0.4; this.options.min_chars    = this.options.min_chars || 1; this.options.method       = 'post';  this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top  = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) };   if(this.options.indicator) this.indicator = $(this.options.indicator);  this.observer = null;  Element.hide(this.update);  Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); 
add: initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array; 
context:   initialize: function(element, update, url, options) {    this.element     = $(element);     this.update      = $(update);      this.has_focus   = false;     this.changed     = false;     this.active      = false;     this.index       = 0;         this.entry_count = 0;        this.url         = url;    this.setOptions(options);    this.options.asynchronous = true;    this.options.onComplete   = this.onComplete.bind(this)    this.options.frequency    = this.options.frequency || 0.4;    this.options.min_chars    = this.options.min_chars || 1;    this.options.method       = 'post';        this.options.onShow = this.options.onShow ||       function(element, update){         if(!update.style.position || update.style.position=='absolute') {          update.style.position = 'absolute';          var offsets = Position.cumulativeOffset(element);          update.style.left = offsets[0] + 'px';          update.style.top  = (offsets[1] + element.offsetHeight) + 'px';          update.style.width = element.offsetWidth + 'px';        }        new Effect.Appear(update,{duration:0.3});      };    this.options.onHide = this.options.onHide ||       function(element, update){ new Effect.Fade(update,{duration:0.3}) };            if(this.options.indicator)      this.indicator = $(this.options.indicator);           this.observer = null;        Element.hide(this.update);        Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));    Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));  },
meta: 1213	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1213/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js