projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e622b66
)
Roo/bootstrap/Img.js
author
edward
<edward@roojs.com>
Wed, 13 Jan 2016 03:31:27 +0000
(11:31 +0800)
committer
edward
<edward@roojs.com>
Wed, 13 Jan 2016 03:31:27 +0000
(11:31 +0800)
Roo/bootstrap/Img.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Img.js
b/Roo/bootstrap/Img.js
index
bad788e
..
f6e441d
100644
(file)
--- a/
Roo/bootstrap/Img.js
+++ b/
Roo/bootstrap/Img.js
@@
-64,8
+64,8
@@
Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component, {
cn: []
}
- Roo.each([
this.xsUrl, this.smUrl, this.mdUrl, this.lgUrl], function(url
){
- if(!
url
){
+ Roo.each([
'xsUrl', 'smUrl', 'mdUrl', 'lgUrl'], function(size
){
+ if(!
this[size]
){
return;
}
@@
-73,7
+73,7
@@
Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component, {
tag: 'img',
cls: (this.imgResponsive) ? 'img-responsive' : '',
html: this.html || cfg.html,
- src: this
.xsUrl
+ src: this
[size]
}
if (['rounded','circle','thumbnail'].indexOf(this.border)>-1) {