mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-07 05:46:40 +02:00
Refactores entry model.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user