From 895fb4eb47442e099f52c48415aee320962362ce Mon Sep 17 00:00:00 2001 From: edward Date: Wed, 13 Jan 2016 11:57:00 +0800 Subject: [PATCH] Roo/bootstrap/Img.js --- Roo/bootstrap/Img.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/Img.js b/Roo/bootstrap/Img.js index 3786e20e54..8ec34746fd 100644 --- a/Roo/bootstrap/Img.js +++ b/Roo/bootstrap/Img.js @@ -66,8 +66,7 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component, { var _this = this; Roo.each(['xs', 'sm', 'md', 'lg'], function(size){ - Roo.log(size); - Roo.log(_this[size + 'Url']); + if(!_this[size + 'Url']){ return; } @@ -76,7 +75,7 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component, { tag: 'img', cls: (_this.imgResponsive) ? 'img-responsive' : '', html: _this.html || cfg.html, - src: _this[size] + src: _this[size + 'Url'] } img.cls += ' roo-image-responsive-' + size; -- 2.39.2