Commit Graph

31 Commits

Author SHA1 Message Date
Quentin Hocdé
0388efc1f1 export $barba from environment 2017-10-16 11:11:01 -04:00
Quentin Hocdé
30063039a3 delete modules before removing the old container 2017-10-11 10:49:40 -04:00
Chauncey McAskill
6d779b55c5 Fix scoped App.deleteModules()
If the scope had no submodules, the method would delete all modules.
2017-08-08 09:35:05 -04:00
Antoine Boulanger
868fd8ff60 Fix destroy 2017-05-30 12:26:24 -04:00
Antoine Boulanger
f6595c3172 JS events consts and namespaces 2017-05-30 12:16:13 -04:00
Julien Martins Da Costa
0baf4ae436 Fix arguments for barba linkClicked event 2017-05-01 15:36:43 -04:00
Chauncey McAskill
06ad6b0cb3 Simplified [data-module] split 2017-05-01 14:52:44 -04:00
Dominic Lord
8b9ee3d0ec Cleanup uid once module destroyed + destroy parent class + added example 2017-04-06 14:04:29 -04:00
Dominic Lord
295d8f282b Merge pull request #56 from locomotivemtl/mcaskill-has-js
Mcaskill has js
2017-03-02 12:36:25 -05:00
Chauncey McAskill
8a93c9d178 Added ‘.has-no-js’ and ‘.has-js’ to <html>
Useful for CSS, e.g.:

```
.has-js .hide-if-js,
.has-no-js .hide-if-no-js {
    display: none;
}
```
2017-03-02 12:35:52 -05:00
Dominic Lord
c5d34fb0ab Added scoped module deletion
- Ability to search through a DOM element and destroy any modules within it
- Added an init() hook on AbstractModule. Used to execute any code that does not belong in a constructor (which is most of what we do)
2017-03-02 11:55:55 -05:00
Dominic Lord
9e8fbed232 Removing any vars + Improved module ident split 2017-03-02 09:52:12 -05:00
Dominic Lord
5eec3941c3 Added a simply debounce util to avoid using throttle plugins 2017-03-02 09:46:51 -05:00
Dominic Lord
3483e1530b Barba as a service 2017-03-02 09:43:20 -05:00
Dominic Lord
c9c3950f8b Reorganization of globals
- Simplified globals usage in App
- Removed global App
2017-03-02 09:42:37 -05:00
Dominic Lord
e22b938741 Adding scoped module creation 2017-03-02 09:22:46 -05:00
Dominic Lord
cc547e484b Cleanup example modules (todo: add in documentation) 2017-03-02 08:57:46 -05:00
Dominic Lord
c9cedfa727 Cleanup example modules (todo: add in documentation) 2017-03-02 08:53:44 -05:00
Chauncey McAskill
0facd79d7e Revised JS
Changes:
- Added constants for APP_NAME, DATA_API_KEY;
- Added constants for Event and Selector to the Button and Title modules;
- Cleaned up syntax for JS modules;
2016-12-18 15:45:52 -05:00
Chauncey McAskill
6f23c38765 Improved module ident split 2016-12-16 20:48:40 -05:00
Chauncey McAskill
553f76f2ca Cast node data to natural types 2016-12-16 16:12:06 -05:00
Chauncey McAskill
79219e0659 Updated EditorConfig Recommendations
Applied 4-spaces for everything as per: https://locomotivemtl.teamwork.com/tasks/7113032
2016-09-07 18:30:36 -04:00
dominiclord
bf0c7e148c Adding commonly used scrollTo + cleaning up utils + cleaning up globals 2016-07-19 10:21:09 -04:00
Antoine Boulanger
6878ba4f96 Fix IE JS bug if el attribute is null 2016-07-14 14:23:46 -04:00
Antoine Boulanger
9138e1ee52 Move svg4everybody to NPM 2016-06-30 16:38:27 -04:00
dominiclord
bb757a22f6 Reworking page visibility API + Adding more utils 2016-05-19 13:37:19 -04:00
dominiclord
b2abd51191 Testing addition of pseudo page visibility API 2016-05-18 23:58:08 -04:00
dominiclord
f07a6aba23 Restructuring of scripts for better use of ES6 concepts
- Optimized use of common properties (, , ...)
- Dispatching events in an attempt to de-globalize certain variables used in the past
- Attempt to organize files in a more logical manner
2016-05-18 23:12:36 -04:00
dominiclord
09016521ed Code style cleanup + Testing event dispatching between modules 2016-04-04 21:31:15 -04:00
Antoine Boulanger
93c66c196d ; 2016-03-16 12:11:27 -04:00
Antoine Boulanger
9ccc53de8a Move src assets files out of dist folder, clean up grunt and related files, separate functions and mixins scss... 2016-03-11 11:02:59 -05:00