You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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.
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".
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.
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.
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 :)
@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.
Activity
DeepDiver1975 commentedon Jan 9, 2015
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
PVince81 commentedon Jul 17, 2015
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.
DeepDiver1975 commentedon Jul 17, 2015
Well - give it a try
blizzz commentedon Aug 5, 2015
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".
blizzz commentedon Aug 5, 2015
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.
PVince81 commentedon Aug 6, 2015
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.
DeepDiver1975 commentedon Aug 6, 2015
I like backbone 👍
oparoz commentedon Aug 6, 2015
👍 for Backbone. What does @Raydiation think?
BernhardPosselt commentedon Aug 6, 2015
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 :)
PVince81 commentedon Aug 6, 2015
@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.
PVince81 commentedon Aug 6, 2015
See the PR #18091
PVince81 commentedon Aug 6, 2015
(always for now, hopefully one day with some requirejs-like library #17169)
blizzz commentedon Aug 6, 2015
Closed via #18091