GithubHelp home page GithubHelp logo

Comments (6)

henryruhs avatar henryruhs commented on August 10, 2024

Imagine someone likes to track the duration from using a clickout button to the moment the visitor is returning back to the website? This feature request is not invalid, control and behaviour is a task of the consuming project or library.

from timeme.js.

jasonzissman avatar jasonzissman commented on August 10, 2024

I apologize for taking so long to get back to this. I agree with both of your assessments. I'll include this shortly.

from timeme.js.

jasonzissman avatar jasonzissman commented on August 10, 2024

I have merged the suggested changes into master. Please let me know if I can help with anything else.

from timeme.js.

henryruhs avatar henryruhs commented on August 10, 2024

Why did you ignore my comment and merged the pull request without a discussion?

What if someone likes to track a duration from the pagehide to the pageshow event? This pull requests makes your library useless for people who have that usecase. In my opinion such kind of behaviour is not a task for your library, it's upon the project that is consuming your library to control when the duration starts, ends or whatever!?

This is breaking the "separation of concerns" principles.

from timeme.js.

jasonzissman avatar jasonzissman commented on August 10, 2024

So I've had some time to reflect on the original issue some more. I think Redaxmedia is right - the calling application should make the decision on whether they really want to start the timer or not. At a minimum the calling application could perform the exact same conditional check (TimeMe.getIfVisibleHandle().now() == false) to make the decision if appropriate.

For now I will revert the changes. I will keep this issue open in the mean time in case we need to continue the discussion or if someone provides counterpoints. Sorry for the back-tracking!

from timeme.js.

henryruhs avatar henryruhs commented on August 10, 2024

Haha, somethings it needs a year to change a opinion. Great move!

from timeme.js.

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.