ui.js
/**
     * To properly handle the refresh methods, call save()
     */
To properly handle the refresh methods, call save()
To properly handle the refresh methods call save ()
save() {
        if ((performance.now() - this.lastchange) < 1000) return;
        this.lastchange = performance.now();
        var path = this.section();
        this.modules[path[path.length - 2]].class().save(function (id) {
            if (path.length > 2) {
                if (path[path.length - 1] != 0) {
                    for (var i = path.length - 4; i >= 0; i = i - 2) {
                        this.modules[path[i]].class().refresh(path[path.length - 2], id);
                    }
                } else { 
                    this.modules[path[path.length - 4]].class().refresh(path[path.length - 2], id);
                }
                ui.force = true;
                window.history.go(-1);
            } else {
                if (path[path.length - 1] < 1) {
                    path[path.length - 1] = id
                    this.replaceSection(path);
                }
                this.animationStart = performance.now();
                this.dismissAnimation();
                setTimeout(function () {
                    this.onSection();
                    this.main.class().see(id);
                }.bind(this), this.animationTime);
            }
        }.bind(this));
    }
save ( ) { if ( ( performance . now ( ) - this . lastchange ) < 1000 ) return ; this . lastchange = performance . now ( ) ; var path = this . section ( ) ; this . modules [ path [ path . length - 2 ] ] . class ( ) . save ( function ( id ) { if ( path . length > 2 ) { if ( path [ path . length - 1 ] != 0 ) { for ( var i = path . length - 4 ; i >= 0 ; i = i - 2 ) { this . modules [ path [ i ] ] . class ( ) . refresh ( path [ path . length - 2 ] , id ) ; } } else { this . modules [ path [ path . length - 4 ] ] . class ( ) . refresh ( path [ path . length - 2 ] , id ) ; } ui . force = true ; window . history . go ( - 1 ) ; } else { if ( path [ path . length - 1 ] < 1 ) { path [ path . length - 1 ] = id this . replaceSection ( path ) ; } this . animationStart = performance . now ( ) ; this . dismissAnimation ( ) ; setTimeout ( function ( ) { this . onSection ( ) ; this . main . class ( ) . see ( id ) ; } . bind ( this ) , this . animationTime ) ; } } . bind ( this ) ) ; }
To properly handle the refresh methods, call save()
To properly handle the refresh methods call save ()
// If new one is created refresh only parent module