summaryrefslogtreecommitdiffstats
path: root/application/helpers
diff options
context:
space:
mode:
authorJoakim Reinert <mail@jreinert.com>2015-04-18 22:18:26 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-05 12:21:26 +0200
commite9a248f9e9ff9a5b816338a634a0ace1d4883471 (patch)
tree7c8e3d87c29820e8d2c99bb56868df0e559fb048 /application/helpers
parent01581b3db2b617a5cf12ef7cf363b982dfc91d7b (diff)
Use require.js for javascript loading
Diffstat (limited to 'application/helpers')
-rw-r--r--application/helpers/filebin_helper.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php
index 7fd25d5f4..2ac061e79 100644
--- a/application/helpers/filebin_helper.php
+++ b/application/helpers/filebin_helper.php
@@ -135,30 +135,6 @@ function link_with_mtime($file)
return $link;
}
-function include_js($file)
-{
- static $included = array();
- if (in_array($file, $included) || $file === null) {
- return "";
- }
- return "<script src=\"".link_with_mtime($file)."\"></script>\n";
-}
-
-// kind of hacky, but works well enough for now
-function register_js_include($file, $return = false)
-{
- static $list = "";
- $list .= include_js($file);
- if ($return) {
- return $list;
- }
-}
-
-function include_registered_js()
-{
- return register_js_include(null, true);
-}
-
function handle_etag($etag)
{
$etag = strtolower($etag);