You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
@pavelgj In block.dart attrAccessorFactory the optional argument operator "?" removal was done incorrectly in #23 since one cannot distinguish "explicitly passed null" from "did not pass an optional argument" parameter. :
attrAccessorFactory(dom.Element element, String name) {
return ([String value]) {
if (value !=null) {
if (value ==null) { // THIS CODE IS NOW DEAD
element.removeAttribute(name);
} else {
element.setAttribute(name, value);
}
return value;
} else {
return element.getAttribute(name);
}
};
}
In a Google+ thread I saw this suggestion for handling similar problem with a special default value: