Skip to content

Conversation

MariusVolkhart
Copy link
Contributor

The Element abstract class had some changes made to it that deprecated the old way of calling getters and setters. The new way has a "$dom_" prefix.

This commit updates these calls for lib and for the IDE sample.

@coderespawn
Copy link
Owner

Hello Marius, Thanks for your support!

As per the recent build release notes, it looks like the client* and offset* attributes has been converted to rects.
So the correct mapping would be:

element.offsetLeft  <=>  element.offset.left
element.offsetWidth  <=>  element.offset.width
element.clientTop  <=>  element.client.top
element.clientHeight  <=>  element.client.height

mouseEvent.offsetX <=> mouseEvent.offset.x
mouseEvent.offsetY <=> mouseEvent.offset.y

$dom_* seem to be internal keywords and will probably be removed in the future. Previous versions of dart SDK showed deprecated warnings for them

Can you make the necessary changes? Also, please update the AUTHORS file with your name

Thanks.

This reverts commit 71cb47e.

Actually replaced the deprecated api with an internal implementation
that is not the official way.
https://groups.google.com/a/dartlang.org/forum/#!msg/misc/bavhE6GlM7E/d6ifDYps7CcJ

Element.client*, Element.offset* have become rects so the correct
syntax is now Element.client.* and Element.offset.*
https://groups.google.com/a/dartlang.org/forum/#!msg/misc/bavhE6GlM7E/d6ifDYps7$

inputEvent.page* and inputEvent.offset* are now dperecated and use
point instead. The correct usage is now inputEvent.page.* and
inputEvent.offset.* respectively
https://groups.google.com/a/dartlang.org/forum/#!msg/misc/bavhE6GlM7E/d6ifDYps7$

List.getRange() has been deprecated and will be removed. The new
usage is List.sublist(). The second paramter is now also a length
rather than an ending index.
@MariusVolkhart
Copy link
Contributor Author

Hi Ali,

Awesome library here! I wanted to thank you for you encouraging feedback and information - it makes me want to continue contributing to open-source projects.

Best regards,
Marius

coderespawn added a commit that referenced this pull request Mar 22, 2013
Update deprecated getters and setters
@coderespawn coderespawn merged commit b8f3348 into coderespawn:master Mar 22, 2013
@coderespawn
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants