this.popup=null;
var that = this;
+ $(element).unbind('keydown');
+ $(element).unbind('keyup');
+
$(element).keydown(function(event){
if (that.popup!==null) that.popup.onkey(event);
});
}
+
/**
* jQuery plugin 'contact_autocomplete'
*/
(function( $ ){
- var map=new Array();
$.fn.contact_autocomplete = function(backend_url) {
this.each(function(){
- if (this in map) return;
- map[this] = new ContactAutocomplete(this, backend_url);
+ new ContactAutocomplete(this, backend_url);
});
};
})( jQuery );