{"size": 1294, "ext": "js", "max_stars_repo_path": "www/js/Transition.js", "max_stars_repo_name": "scieloorg/pulsemob_app", "max_stars_repo_stars_event_min_datetime": "2016-06-28T16:42:38.000Z", "max_stars_repo_stars_event_max_datetime": "2019-03-16T05:06:29.000Z", "max_issues_repo_path": "www/js/Transition.js", "max_issues_repo_name": "DalavanCloud/pulsemob_app", "max_issues_repo_issues_event_min_datetime": "2016-01-29T13:02:19.000Z", "max_issues_repo_issues_event_max_datetime": "2017-04-03T18:38:50.000Z", "max_forks_repo_path": "www/js/Transition.js", "max_forks_repo_name": "DalavanCloud/pulsemob_app", "max_forks_repo_forks_event_min_datetime": "2016-01-26T12:41:08.000Z", "max_forks_repo_forks_event_max_datetime": "2019-03-16T05:06:17.000Z"}
{"max_stars_count": 2, "max_issues_count": 47, "max_forks_count": 2, "avg_line_length": 29.4090909091, "max_line_length": 94, "alphanum_fraction": 0.5880989181}
(function(window) {

    // transition object
    var Transition = window.Transition = {
        control: false,
        class: 'transitionApp2',
        deferred: null
    };

    /* effects, for select one effect, create or view effects in transitions.css */
    Transition.animations = {
        'home.html': 'transitionApp2'
    }
    //get current class for page
    Transition.getClassAnimation = function(page) {
        if (Transition.animations.hasOwnProperty(page)) {
            return Transition.animations[page];
        }
        return Transition.class;
    }

    //start transition
    Transition.start = function() {
        Transition.deferred = $.Deferred();
        App.$content.addClass(Transition.class);

        return Transition.deferred.promise();
    };
    //end transition with listener
    Transition.End = function() {
        if (Transition.control) {
            Transition.control = false;
            PageLoad.load(Navigator.currentPage);
            
            App.refreshScroll();
            Transition.deferred.resolve(true);
        }
    };
    
    Transition.addEventListeners = function() {
        App.$content.on("webkitTransitionEnd transitionend MSTransitionEnd", Transition.End);
    };

})(window);