Roo/bootstrap/Img.js
authorEdward <edward@roojs.com>
Fri, 21 Mar 2014 05:07:35 +0000 (13:07 +0800)
committerEdward <edward@roojs.com>
Fri, 21 Mar 2014 05:07:35 +0000 (13:07 +0800)
Roo/bootstrap/Img.js

index c5066d1..c3b41c7 100644 (file)
 
 Roo.bootstrap.Img = function(config){
     Roo.bootstrap.Img.superclass.constructor.call(this, config);
+    
+    this.addEvents({
+        // img events
+        /**
+         * @event click
+         * The img click event for the img.
+         * @param {Roo.EventObject} e
+         */
+        "click" : true
+    });
 };
 
 Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {