Refactores entry model.
This commit is contained in:
parent
050d91daa8
commit
3349108f7e
@ -18,7 +18,9 @@ modulejs.define('model/entry', ['_', 'core/types', 'core/ajax'], function (_, ty
|
||||
},
|
||||
|
||||
|
||||
rePrePathname = /.*:\/\/[^\/]*/,
|
||||
location = (function () {
|
||||
|
||||
var rePrePathname = /.*:\/\/[^\/]*/,
|
||||
rePostPathname = /[^\/]*$/,
|
||||
|
||||
uriToPathname = function (uri) {
|
||||
@ -26,10 +28,7 @@ modulejs.define('model/entry', ['_', 'core/types', 'core/ajax'], function (_, ty
|
||||
return uri.replace(rePrePathname, '').replace(rePostPathname, '');
|
||||
},
|
||||
|
||||
|
||||
location = (function () {
|
||||
|
||||
var testpathname = '/a b',
|
||||
testpathname = '/a b',
|
||||
a = doc.createElement('a'),
|
||||
isDecoded, location;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user