mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-29 06:25:18 -04:00
Removes unnecessary closures.
This commit is contained in:
parent
b1f6bd0d67
commit
fbff8686bf
10 changed files with 1341 additions and 1370 deletions
|
@ -1,8 +1,6 @@
|
|||
|
||||
(function ($, H5AI) {
|
||||
|
||||
H5AI.connector = (function () {
|
||||
|
||||
var cache = {},
|
||||
pathnameStatusCache = {},
|
||||
contentTypeRegEx = /^text\/html;h5ai=/,
|
||||
|
@ -105,11 +103,10 @@
|
|||
});
|
||||
};
|
||||
|
||||
return {
|
||||
H5AI.connector = {
|
||||
getPath: getPath,
|
||||
updatePaths: updatePaths,
|
||||
fetchStatusAndContent: fetchStatusAndContent
|
||||
};
|
||||
}());
|
||||
|
||||
}(jQuery, H5AI));
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
|
||||
(function ($, H5AI) {
|
||||
|
||||
H5AI.context = (function () {
|
||||
|
||||
var $context,
|
||||
qrCodesSize,
|
||||
showQrCode = function ($a) {
|
||||
|
@ -46,10 +44,8 @@
|
|||
});
|
||||
};
|
||||
|
||||
|
||||
return {
|
||||
H5AI.context = {
|
||||
init: init
|
||||
};
|
||||
}());
|
||||
|
||||
}(jQuery, H5AI));
|
|
@ -1,8 +1,6 @@
|
|||
|
||||
(function (window, $, H5AI, config) {
|
||||
|
||||
H5AI.core = (function () {
|
||||
|
||||
var $window = $(window),
|
||||
defaults = {
|
||||
store: {
|
||||
|
@ -423,7 +421,7 @@
|
|||
initIndicators();
|
||||
};
|
||||
|
||||
return {
|
||||
H5AI.core = {
|
||||
settings: settings,
|
||||
hash: hash,
|
||||
api: api,
|
||||
|
@ -436,6 +434,5 @@
|
|||
getFileType: getFileType,
|
||||
init: init
|
||||
};
|
||||
}());
|
||||
|
||||
}(window, jQuery, H5AI, H5AI_CONFIG));
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
|
||||
(function (document, $, H5AI) {
|
||||
|
||||
H5AI.extended = (function () {
|
||||
|
||||
var initBreadcrumb = function () {
|
||||
|
||||
var $ul = $("body > nav ul"),
|
||||
|
@ -124,9 +122,8 @@
|
|||
}
|
||||
};
|
||||
|
||||
return {
|
||||
H5AI.extended = {
|
||||
init: init
|
||||
};
|
||||
}());
|
||||
|
||||
}(document, jQuery, H5AI));
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
|
||||
(function ($, H5AI) {
|
||||
|
||||
H5AI.finder = (function () {
|
||||
|
||||
var filter = function (re) {
|
||||
|
||||
var match = [],
|
||||
|
@ -101,11 +99,9 @@
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
return {
|
||||
H5AI.finder = {
|
||||
init: init,
|
||||
filter: filter
|
||||
};
|
||||
}());
|
||||
|
||||
}(jQuery, H5AI));
|
|
@ -1,8 +1,6 @@
|
|||
|
||||
(function ($, H5AI) {
|
||||
|
||||
H5AI.html = (function () {
|
||||
|
||||
var onClick = function (path, context) {
|
||||
|
||||
},
|
||||
|
@ -253,12 +251,11 @@
|
|||
updateTreeHtml(path);
|
||||
};
|
||||
|
||||
return {
|
||||
H5AI.html = {
|
||||
updateCrumbHtml: updateCrumbHtml,
|
||||
updateExtendedHtml: updateExtendedHtml,
|
||||
updateTreeHtml: updateTreeHtml,
|
||||
updateHtml: updateHtml
|
||||
};
|
||||
}());
|
||||
|
||||
}(jQuery, H5AI));
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
|
||||
(function ($, H5AI) {
|
||||
|
||||
H5AI.sort = (function () {
|
||||
|
||||
var type = function (entry) {
|
||||
|
||||
var $entry = $(entry);
|
||||
|
@ -150,9 +148,8 @@
|
|||
});
|
||||
};
|
||||
|
||||
return {
|
||||
H5AI.sort = {
|
||||
init: init
|
||||
};
|
||||
}());
|
||||
|
||||
}(jQuery, H5AI));
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
|
||||
(function ($, H5AI) {
|
||||
|
||||
H5AI.util = (function () {
|
||||
|
||||
var reSplitPath = /^\/([^\/]+\/?)$/,
|
||||
reSplitPath2 = /^(\/(?:.*\/)*?([^\/]+)\/)([^\/]+\/?)$/,
|
||||
splitPath = function (pathname) {
|
||||
|
@ -106,7 +104,7 @@
|
|||
return sequence.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
|
||||
};
|
||||
|
||||
return {
|
||||
H5AI.util = {
|
||||
splitPath: splitPath,
|
||||
pathEndsWithSlash: pathEndsWithSlash,
|
||||
getAbsHref: getAbsHref,
|
||||
|
@ -115,6 +113,5 @@
|
|||
checkedDecodeUri: checkedDecodeUri,
|
||||
reEscape: reEscape
|
||||
};
|
||||
}());
|
||||
|
||||
}(jQuery, H5AI));
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
|
||||
(function ($, H5AI) {
|
||||
|
||||
H5AI.zippedDownload = (function () {
|
||||
|
||||
var x = 0,
|
||||
y = 0,
|
||||
$document = $(document),
|
||||
|
@ -183,9 +181,8 @@
|
|||
}
|
||||
};
|
||||
|
||||
return {
|
||||
H5AI.zippedDownload = {
|
||||
init: init
|
||||
};
|
||||
}());
|
||||
|
||||
}(jQuery, H5AI));
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
(function ($) {
|
||||
'use strict';
|
||||
/*jslint browser: true, confusion: true, regexp: true, vars: true, white: true */
|
||||
/*global Modernizr, jQuery, amplify, H5AI_CONFIG */
|
||||
/*global Modernizr, jQuery, amplify, Base64, H5AI_CONFIG */
|
||||
|
||||
var H5AI = {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue