title: Blur event triggered on focus
body: <p>I am using the following code <a href="http://jsfiddle.net/rsKQq/" rel="nofollow">jsFiddle</a>:</p>
  
  <pre><code>function Field(args) {
      this.id = args.id;
  
      this.name = args.name ? args.name : null;
      this.reqType = args.reqType ? args.reqType : null;
      this.reqUrl = args.reqUrl ? args.reqUrl : null;
      this.required = args.required ? true : false;
      this.error = args.error ? args.error : null;
  
      this.elem = document.getElementById(this.id);
      this.value = this.elem.value;
  
      this.elem.addEventListener('blur', this, false);
      this.elem.addEventListener('focus', this, false);
  }
  
  // FormTitle is the specific field like a text field. There could be many of them.
  function FormTitle(args) {
      Field.call(this, args);
  }
  
  Field.prototype.getValue = function() { return Helpers.trim( this.value ) };
  
  Field.prototype.blur = function (value) {
      alert("blur");  
  };
  
  Field.prototype.focus = function (value) {
      alert("focus");  
  };
  
  Field.prototype.handleEvent = function(event) {
      var prop = event.type;
      if ((prop in this) &amp;&amp; typeof this[prop] == "function")
          this[prop](this.value);
  };
  
  inheritPrototype(FormTitle, Field);
  var title = new FormTitle({name: "sa", id: "title"});
  
  function inheritPrototype(e, t) {
      var n = Object.create(t.prototype);
      n.constructor = e;
      e.prototype = n
  }
  
  if (!Object.create) {
      Object.create = function (e) {
          function t() {}
          if (arguments.length &gt; 1) {
              throw new Error("Object.create implementation only accepts the first parameter.")
          }
          t.prototype = e;
          return new t
     }
  }
  </code></pre>
  
  <p>The problem is that the 'blur' event is fired every time the field is brought to focus, which is opposite of what you'd expect. This is despite the fact that the focus event isn't even mentioned in the code. The problem is that I cannot replicate this problem in jsFiddle but the problem is happening in IE.</p>
  
  <p>Also, on jsFiddle, there is another problem. The focus event is triggered multiple times...</p>
  
  <p>Is there a possible explanation for this and/or a solution?</p>
  
  <h2>Updated:</h2>
  
  <p>Bonus question (and last on this, promise).
  I added a function addEvent to dynamically add events to form fields instead of adding them all directly in the parent constructor. This is the <a href="http://jsfiddle.net/p3r9M/" rel="nofollow">jsFiddle</a> for it. I am trying to call the function but it doesn't seem to work. What might I be doing wrong?</p>