Roo/bootstrap/Img.js
authorAlan Knowles <alan@roojs.com>
Tue, 20 Jul 2021 04:08:21 +0000 (12:08 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 20 Jul 2021 04:08:21 +0000 (12:08 +0800)
Roo/bootstrap/Img.js

index 5d31dff..cd5505f 100644 (file)
@@ -168,8 +168,7 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
             this.el.on('click', this.onClick, this);
         }
         if(this.src || (!this.xsUrl && !this.smUrl && !this.mdUrl && !this.lgUrl)){
-            this.el.on('loac', this.onImageLoad, this);
-            
+            this.el.on('load', this.onImageLoad, this);
         } else {
             // not sure if this works.. not tested
             this.el.select('img', true).on('load', this.onImageLoad, this);