main.js

define(["../../javascripts/app/offer","../../javascripts/app/venue","../../javascripts/app/subList","../../javascripts/app/review"],function (offer,venue,subList,review) {
    function initialize(){
        var cUrl = window.location.pathname
            if(cUrl == '/spotitOffer'){
                offer.init() ;
            }else if(cUrl == '/spotitVenue'){
                venue.init();
            }else if(cUrl == '/spotitsubList'){
                subList.init();
            }
            else if(cUrl == '/spotitReview'){
                review.init();
            }
    }
    initialize();

 });

Leave a Reply

Your email address will not be published. Required fields are marked *