Giter Club home page Giter Club logo

Comments (15)

reillyeon avatar reillyeon commented on July 28, 2024

Correction to the above, MDN also lists initEvent() as deprecated.

from deviceorientation.

foolip avatar foolip commented on July 28, 2024

Trying to figure out who might know about this from code etc. in the various engines:

  • EdgeHTML: @adrianba has posted to the list, but I think he's OOO, so perhaps michaelchampion?
  • Gecko: @khuey @smaug----?
  • WebKit: @cdumez? (also Sam Weinig, but can't find on GitHub)

Between standardization and removal, do y'all have preferences?

from deviceorientation.

marcoscaceres avatar marcoscaceres commented on July 28, 2024

@khuey left Mozilla a little while ago to do other fun things

from deviceorientation.

khuey avatar khuey commented on July 28, 2024

Indeed. Maybe try @bakulf?

from deviceorientation.

cdumez avatar cdumez commented on July 28, 2024

Since most engines have it, I'd personally prefer to standardize.

from deviceorientation.

smaug---- avatar smaug---- commented on July 28, 2024

init*Events() are deprecated at least in the sense that new event interface types shouldn't get them, but I don't see any strong reason to remove them if all the implementations support them.

Hmm, though, if we want to make the platform better and eventually remove all the initEvent methods
(and createEvent), then we should try to remove init
Events one by one.

Do we have up-to-date data about initDeviceMotionEvent and initDeviceOrientationEvent usage?

from deviceorientation.

foolip avatar foolip commented on July 28, 2024

We have these use counters:
https://www.chromestatus.com/metrics/feature/timeline/popularity/865
https://www.chromestatus.com/metrics/feature/timeline/popularity/866

However, despite the fact that I closed #18 I would be perfectly happy to see these standardized, and don't think we can possibly remove all of the init*Event() methods, because:
https://www.chromestatus.com/metrics/feature/timeline/popularity/867

I would, however, like to give them all exactly one required argument as in whatwg/dom#387.

For those that aren't interoperable yet, it's very possible that removing them from n engines could be a faster path to interop than adding them to 4-n, depending on the numbers and usage.

from deviceorientation.

foolip avatar foolip commented on July 28, 2024

Should also say that if there is one eager individual for each engine, I would support removal as well.

from deviceorientation.

travisleithead avatar travisleithead commented on July 28, 2024

We would love to drop support for it. We are still plumbing Event constructors through for everything, so these won't have that support yet, but we'll get there. Meanwhile, it doesn't matter if no one is programmatically dispatching them in practice anyway.

So +1

from deviceorientation.

reillyeon avatar reillyeon commented on July 28, 2024

@smaug----, given the usage numbers above what do you think?

from deviceorientation.

smaug---- avatar smaug---- commented on July 28, 2024

Dropping them sounds good.

from deviceorientation.

reillyeon avatar reillyeon commented on July 28, 2024

Chrome will be removing these methods.

from deviceorientation.

reillyeon avatar reillyeon commented on July 28, 2024

Closing this issue. Safari Mobile appears to be the only browser still implementing these methods.

from deviceorientation.

smaug---- avatar smaug---- commented on July 28, 2024

I see https://searchfox.org/mozilla-central/source/dom/webidl/DeviceOrientationEvent.webidl#16

from deviceorientation.

reillyeon avatar reillyeon commented on July 28, 2024

Ah, my mistake. I was checking for it in Firefox Developer Tools but obviously flubbed it. Nonetheless, it is marked as deprecated and so I don't think there is any need to keep this issue open in anticipation of specifying these methods.

from deviceorientation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.