@@ -137,8 +137,8 @@ var Dispatcher = function() {
137137 }
138138 if (len === 1) {
139139 var dim = correctSize(kids[0]);
140− if (e.style.width !== "") { dim[0] = e.style.width.slice(0,-2) - 0; }
141− if (e.style.height !== "") { dim[1] = e.style.height.slice(0,-2) - 0; }
140+ if (e.style.hasOwnProperty('width') && e.style.width.length > 0) { dim[0] = e.style.width.slice(0,-2) - 0; }
141+ if (e.style.hasOwnProperty('height') && e.style.height.length > 0) { dim[1] = e.style.height.slice(0,-2) - 0; }
142142 if (dim[0] !== 0) { e.style.width = dim[0] + "px"; }
143143 if (dim[1] !== 0) { e.style.height = dim[1] + "px"; }
144144 return dim;