summaryrefslogtreecommitdiff
path: root/js/utility.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/utility.js')
-rw-r--r--js/utility.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/js/utility.js b/js/utility.js
deleted file mode 100644
index fe1d0f1..0000000
--- a/js/utility.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Returns a random integer between min and max
- *
- * @param {Number} min
- * @param {Number} max
- * @return {Number}
- */
-if (typeof Math.rangeInt != 'function') {
- Math.rangeInt = function(min, max){
- if (max == undefined) {
- max = min;
- min = 0;
- }
- return Math.floor(Math.random() * (max - min + 1)) + min;
- }
-}
-
-/**
- * Mege two objects
- *
- * @param {Object} o1 Object 1
- * @param {Object} o2 Object 2
- * @return {Object}
- */
-if (typeof Object.merge != 'function') {
- Object.merge = function(o1, o2) {
- for (var i in o1) {
- o2[i] = o1[i];
- }
- return o2;
- }
-}