Closed ludwiktrammer closed 7 years ago
Very nice. I had expected to see more changes. Thanks, I'll get this posted as a RC shortly. Going to fix the copy/paste error for view.runAgainstId
and publish a final v2.5 plugin.
Thank you. I have published v2.00 which is NS 3.0 compatible.
@ludwiktrammer I'd be pleased to send you a little token of our appreciation for this PR if you ping me on NativeScript Community Slack to arrange shipping. :)
There are two main changes:
Stoped using the
cssClass
property (which is a long deprecated, and now removed name forclassName
). UseclassName
instead.Operate on
ViewBase
objects instead of operating onView
objects. This is consistent with how the built-ingetViewById
method behaves in NS 3 (i.e. it also is defined inViewBase
class and also returnsViewBase
objects). It is also pretty much unavoidable, since theeachDescendant
method, used internally bynativescript-dom
, now operates onViewBase
objects - and some of them will actually not beView
objects (for exampleSpan
orActionBar
).After making those changes I tested every method exposed by
nativescript-dom
and they all seemed to work fine. In the process of testing, I discovered two additional issues that were not specific to NativeScript 3. I corrected them and will indicate them using code comments.