Closed joernroeder closed 8 years ago
I've also found a similar switch in https://github.com/mikedeboer/jsDAV/blob/master/lib/VObject/component.js#L166 which does the same thing but doesn't break anything due to the additional if (item.hasFeature && …)
check.
Yeah, that looks good - please submit a pull request!
jup, i'll clean up my repo, squash my commits and open a pull request.
i've just read througth the VObject code and saw this
if else
statement in theproperty.add
function: https://github.com/mikedeboer/jsDAV/blob/master/lib/VObject/property.js#L224 You're handling the difference between aNode object
and astring
here butstring
doesn't have a.hasFeature
method. Therefore i suggest to switch the statement. What do you think? I can submit a pull request if you like :)