code: function() {
             if (this.options.clear) {
                 this.$clear = $('<span class="editable-clear-x"></span>');
                 this.$input.after(this.$clear)
                            .css('padding-right', 24)
                            .keyup($.proxy(function(e) {
                                //arrows, enter, tab, etc
                                if(~$.inArray(e.keyCode, [40,38,9,13,27])) {
                                  return;
                                }                            
  
                                clearTimeout(this.t);
                                var that = this;
                                this.t = setTimeout(function() {
                                  that.toggleClear(e);
                                }, 100);
                                
                            }, this))
                            .parent().css('position', 'relative');
                            
                 this.$clear.click($.proxy(this.clear, this));                       
             }            
          }
docs: render clear button