blob: c7830a8ac5ff8549ebb13a63c4446f95a3b577fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/*
* Copyright (c) 2012-2014 Kaarle Ritvanen
* See LICENSE file for license details
*/
define(["jquery", "jquery-bbq"], function($) {
return {
getPath: function() { return decodeURI($.param.fragment()); },
setPath: function(path) { $.bbq.pushState("#" + encodeURI(path)); }
};
});
|