client/js/require-utils.js
author rougeronj
Wed, 03 Jun 2015 17:27:46 +0200
changeset 471 e0c7be5dc02c
parent 293 fba23fde14ba
permissions -rw-r--r--
Add a router to handle fragment identifier Set up a listener of the router in the scene to update it Start Backbone.history (eventlistener of the router) when all the project is loaded Include router.js to all the test file
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
284
fa8035885814 build renderer with require js
cavaliet
parents:
diff changeset
     1
define([], function ($, _) {
293
fba23fde14ba Correct jshint errors and force it on build
ymh <ymh.work@gmail.com>
parents: 290
diff changeset
     2
    'use strict';
284
fa8035885814 build renderer with require js
cavaliet
parents:
diff changeset
     3
    return {
fa8035885814 build renderer with require js
cavaliet
parents:
diff changeset
     4
        getUtils: function(){
fa8035885814 build renderer with require js
cavaliet
parents:
diff changeset
     5
            return window.Rkns.Utils;
fa8035885814 build renderer with require js
cavaliet
parents:
diff changeset
     6
        },
fa8035885814 build renderer with require js
cavaliet
parents:
diff changeset
     7
        getRenderer: function(){
fa8035885814 build renderer with require js
cavaliet
parents:
diff changeset
     8
            return window.Rkns.Renderer;
fa8035885814 build renderer with require js
cavaliet
parents:
diff changeset
     9
        }
290
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 284
diff changeset
    10
    };
293
fba23fde14ba Correct jshint errors and force it on build
ymh <ymh.work@gmail.com>
parents: 290
diff changeset
    11
fba23fde14ba Correct jshint errors and force it on build
ymh <ymh.work@gmail.com>
parents: 290
diff changeset
    12
});