title: javascript equivalent to jquery trigger method
body: <p>If this is the equivalent to the jquery bind method, what would it be for the trigger method. </p>
  
  <pre><code>function bind( scope, fn ) {
      return function () {
          fn.apply( scope, arguments );
      };
  }
  </code></pre>
  
  <p>the code above is from another post and it looks the same as a proxy method</p>
  
  <p>you can comment on this too</p>
  
  <p>I have to take the jquery part out off this framework, - this is just the relevant part</p>
  
  <pre><code>if (selector === '') {
                this.el.bind(eventName, method);
              } else {
                this.el.delegate(selector, eventName, method);
              }
            }
          }
        });
  
        if (includes) result.include(includes);
  
        return result;
      };
  
      exports.Controller = mod;
  })($, window);
  
  var exports = this;
  
  var Events = {
      bind: function(){
        if ( !this.o ) this.o = $({});
        this.o.bind.apply(this.o, arguments);
      },
  trigger: function(){
    if ( !this.o ) this.o = $({});
    this.o.trigger.apply(this.o, arguments);
  }
  };
  </code></pre>
  
  <p>thanks</p>