Skip to content

Commit 0cdeb2a

Browse files
committed
fixed safari responsive image bug
1 parent f7601a0 commit 0cdeb2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/js/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
for (var i in element.children) {
231231
if(!element.children.hasOwnProperty(i)) continue;
232232

233-
if (element.children[i].tagName.toLowerCase() === 'img') {
233+
if (element.children[i].tagName && element.children[i].tagName.toLowerCase() === 'img') {
234234
children.push(element.children[i]);
235235

236236
var minWidth = element.children[i].getAttribute('min-width') || element.children[i].getAttribute('data-min-width');
@@ -835,7 +835,7 @@ function example5(){
835835
box[0].innerHTML = (++changed) + ' changes. ' + box.parent()[0].clientWidth+'px/'+box.parent()[0].clientHeight+'px';
836836
});
837837
}
838-
}).call(this,require("g5I+bs"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_6685b273.js","/")
838+
}).call(this,require("g5I+bs"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_ef7dd2a2.js","/")
839839
},{"./css-element-queries/src/ElementQueries":1,"./css-element-queries/src/ResizeSensor":2,"buffer":5,"codemirror/lib/codemirror":6,"codemirror/mode/css/css":7,"codemirror/mode/htmlmixed/htmlmixed":8,"codemirror/mode/javascript/javascript":9,"codemirror/mode/xml/xml":10,"g5I+bs":14,"hammerjs/hammer":11,"jQuery":13}],4:[function(require,module,exports){
840840
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
841841
var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

0 commit comments

Comments
 (0)