{"size": 1503, "ext": "js", "max_stars_repo_path": "js/lib/PJLiMo.js", "max_stars_repo_name": "anubhavgupta/PJliMo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/lib/PJLiMo.js", "max_issues_repo_name": "anubhavgupta/PJliMo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/lib/PJLiMo.js", "max_forks_repo_name": "anubhavgupta/PJliMo", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.7763157895, "max_line_length": 60, "alphanum_fraction": 0.5389221557}
/**
 * User: Anubhav
 * Date: 9/18/13
 * Time: 12:06 AM
 *
 * //MIT Licence
 */


(function(d,w){



    // Page Interface
    this.Page= function(){
        this.startup=function(){};
        this.createStructure=function(){};
        this.loadContent=function(){};
        this.loadEvents=function(){};
        this.onPageUnload=function(){};
    };


    var self=this;
    var pageCont=null;
    this.limo = new function (){


      /* this.viewTree={
            "/":{
                *//*vars:["attr1","attr2"],*//*
                pageNode:"js/pages/index.js"
            }
        };*/


        this.classList=[];


        this.setPage=function(contentNode,pageContainer){

            if(pageContainer)
            {
                pageCont=pageContainer;
            }
            pageCont.appendChild(contentNode);

        };

        this.init=function(pageClass){
            var pageObj=new pageClass();
            pageObj.startup();
            limo.setPage(pageObj.createStructure());
        };

    };

    document.addEventListener("DOMContentLoaded",function(){

        //preload
        pageCont=document.getElementsByTagName("body")[0];

        var newPage=document.createElement("script");
        newPage.src="js/pages/index.js";
        newPage.type="text/javascript";
        var header=document.getElementsByTagName("head")[0];
        header.insertBefore(newPage,header.children[0]);


        //TODO:- start according to path/...

    },false);

}(document,window))

