SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 93 JavaScript

fix($compile): properly handle setting `srcset` to undefined

Previously, calling `Attributes#$set('srcset', value)` on an `<img>` element would throw if `value`
were undefined, as it assumed `value` is always a string.
This commit fixes the issue, by skipping the unnecessary string manipulation when `value` is not
defined.

Closes #14470

Closes #14493
P
Perry Hooker committed
2310e1090a2c45f95a02cabd65e0899739b9f221
Parent: 92752e5
Committed by Georgios Kalpakas <g.kalpakas@hotmail.com> on 4/26/2016, 6:06:26 AM