aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js/common.js
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-03-08 03:31:04 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-03-08 03:31:04 +0300
commit924d89666fd0427437e6ae5b42e46699cfe75521 (patch)
tree9bf5821bbb6e6bb74cb944e88b77577f9f279628 /js/common.js
parent_includes: merge links.html to navbar.html (diff)
downloadsorting-algorithms-924d89666fd0427437e6ae5b42e46699cfe75521.tar.gz
sorting-algorithms-924d89666fd0427437e6ae5b42e46699cfe75521.zip
plots: get rid of JavaScript
Diffstat (limited to '')
-rw-r--r--js/common.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/js/common.js b/js/common.js
deleted file mode 100644
index 07268f4..0000000
--- a/js/common.js
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
-// This file is licensed under the terms of the MIT License.
-// See LICENSE.txt for details.
-
-if (!String.prototype.format) {
- String.prototype.format = function() {
- var str = this.toString();
- if (!arguments.length)
- return str;
- switch (typeof arguments[0]) {
- case 'string':
- case 'number':
- var args = arguments;
- break;
- default:
- var args = arguments[0];
- break;
- }
- for (var arg in args)
- str = str.replace(new RegExp('\\{' + arg + '\\}', 'gi'), args[arg]);
- return str;
- }
-}