mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-21 04:49:58 +01:00
Refactores entry model.
This commit is contained in:
parent
050d91daa8
commit
3349108f7e
@ -18,18 +18,17 @@ modulejs.define('model/entry', ['_', 'core/types', 'core/ajax'], function (_, ty
|
||||
},
|
||||
|
||||
|
||||
rePrePathname = /.*:\/\/[^\/]*/,
|
||||
rePostPathname = /[^\/]*$/,
|
||||
|
||||
uriToPathname = function (uri) {
|
||||
|
||||
return uri.replace(rePrePathname, '').replace(rePostPathname, '');
|
||||
},
|
||||
|
||||
|
||||
location = (function () {
|
||||
|
||||
var testpathname = '/a b',
|
||||
var rePrePathname = /.*:\/\/[^\/]*/,
|
||||
rePostPathname = /[^\/]*$/,
|
||||
|
||||
uriToPathname = function (uri) {
|
||||
|
||||
return uri.replace(rePrePathname, '').replace(rePostPathname, '');
|
||||
},
|
||||
|
||||
testpathname = '/a b',
|
||||
a = doc.createElement('a'),
|
||||
isDecoded, location;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user