Create Viewrepr which handle the representation of the View.
- Put in all the function about Hidden Nodes
- In scene, initializes this.view with the first view of the project (later it will be handled by a view manager)
(function(root) {
"use strict";
var Backbone = root.Backbone;
var Router = root.Rkns.Router = Backbone.Router.extend({
routes: {
'': 'index'
},
index: function (parameters) {
var result = {};
if (parameters === null){
return;
}
parameters.split("&").forEach(function(part) {
var item = part.split("=");
result[item[0]] = decodeURIComponent(item[1]);
});
this.trigger('router', result);
}
});
})(window);