From be8ac5c135f604fa7e3629807e65f5a5bdf77a01 Mon Sep 17 00:00:00 2001 From: Marcio Vinicius dos Santos Date: Sat, 23 May 2015 13:08:38 -0400 Subject: [PATCH] Image width and height should not be forced in the component. - The library should no be responsible to resize the component. --- hisrc.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/hisrc.js b/hisrc.js index 192eb37..c8fe039 100644 --- a/hisrc.js +++ b/hisrc.js @@ -229,14 +229,6 @@ $el.data('m1src', src); } - // check for zero which often happens in safari. - if (!$el.attr('width') && $el.width() > 0) { - $el.attr('width', $el.width()); - } - if (!$el.attr('height') && $el.height() > 0) { - $el.attr('height', $el.height()); - } - $el.on('speedTestComplete.hisrc', function(){ if (speedConnectionStatus === STATUS_COMPLETE) {