Skip to content

Introduce microevent library #9227

Closed
Closed

Description

@PVince81

Introduce this: https://github.com/jeromeetienne/microevent.js

Because currently we're just hijacking jQuery's DOM events to do stuff it wasn't designed for.

Having an event lib will make it possible to better sync events between objects (ex: register a new file actions should notify the file lists so they can redraw themselves)

Activity

  1. added this to the milestone on Jun 28, 2014
  2. DeepDiver1975 commented on Jan 9, 2015

    @DeepDiver1975
    Contributor

    higher level js framework have their own machanism - we need to make sure they do not intercept -> backlog, let's grab it if we need it @PVince81

  3. modified the milestones: backlog, on Jan 9, 2015
  4. PVince81 commented on Jul 17, 2015

    @PVince81
    ContributorAuthor

    Talked with @blizzz and we'd like to introduce MicroEvent for the right sidebar.
    Goal is to be able to updte the FileInfo object and have the changes be automatically reflected in the FileList.

    I think MicroEvent is a mixin, so it shouldn't interfere with other frameworks. Classes that want its functions need to explicitly use it as mixin.

  5. modified the milestones: , backlog on Jul 17, 2015
  6. DeepDiver1975 commented on Jul 17, 2015

    @DeepDiver1975
    Contributor

    Talked with @blizzz and we'd like to introduce MicroEvent for the right sidebar.

    Well - give it a try

  7. blizzz commented on Aug 5, 2015

    @blizzz
    Contributor

    Discussing with @PVince81 we would like to use Backbone.js which, next to an event system, also gives us Model and View base classes, which we would like to use for Sidebar stuff before reinventing wheels (which I already have partly in LDAP wizard). It enables/forces us to use a consistent coding pattern, instead of growing "Insellösungen".

  8. blizzz commented on Aug 5, 2015

    @blizzz
    Contributor

    opinions? ^ @MorrisJobke @schiesbn @oparoz @rullzer @karlitschek

    Of course the introduction needs to be non-intrusive. It would not influence any current usage or app developer (we make sure to not intervene with possible provided backbone imports by apps), so contributors would not need to relearn anything.

  9. PVince81 commented on Aug 6, 2015

    @PVince81
    ContributorAuthor

    This came up when we noticed that @blizzz and I were using slightly different approaches for model/views. So we'd need to introduce base classes as a common ground. But then we'd need to maintain those classes and write the event functionality and other stuff ourselves, test it and maintain it... so why not just benefit from a library that already does that: Backbone JS.

  10. DeepDiver1975 commented on Aug 6, 2015

    @DeepDiver1975
    Contributor

    I like backbone 👍

  11. oparoz commented on Aug 6, 2015

    @oparoz
    Contributor

    👍 for Backbone. What does @Raydiation think?

  12. BernhardPosselt commented on Aug 6, 2015

    @BernhardPosselt
    Contributor

    As long as it's loaded only for the files app it's a major improvement over the current state. Backbone is designed pretty well and if the people who work on it want to use it am all for it :)

  13. PVince81 commented on Aug 6, 2015

    @PVince81
    ContributorAuthor

    @Raydiation it will have to be loaded in core always because it will be required for some common code (the sharing dialog rewrite which resides in core). However it will use "noConflict" and be accessible under "OC.Backbone" to avoid conflict with other apps that might have backbone.
    Hope it's ok.

  14. PVince81 commented on Aug 6, 2015

    @PVince81
    ContributorAuthor

    See the PR #18091

  15. PVince81 commented on Aug 6, 2015

    @PVince81
    ContributorAuthor

    (always for now, hopefully one day with some requirejs-like library #17169)

  16. blizzz commented on Aug 6, 2015

    @blizzz
    Contributor

    Closed via #18091

  17. locked as resolved and limited conversation to collaborators on Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions