- Fix the behavior of views and parameters
- Introduce views_parameters and views_nodes to loads or not the view's characteristics
- Urls parameters overrides options
- SetSavedView loads the current view's characteristics
- view = autoscale in url forces autoscale on the current loaded view
(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){
parameters.split("&").forEach(function(part) {
var item = part.split("=");
result[item[0]] = decodeURIComponent(item[1]);
});
}
this.trigger('router', result);
}
});
})(window);