aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/grum_plugins_classes-2/genericjs.js
diff options
context:
space:
mode:
authorgrum <grum@piwigo.org>2008-10-22 21:08:44 +0000
committergrum <grum@piwigo.org>2008-10-22 21:08:44 +0000
commitfbf7b9b6ce63bdedd4d15adb615af0291c684bbf (patch)
treefab56e29adda9b7a3bfe2054432846dd2b6bde87 /plugins/grum_plugins_classes-2/genericjs.js
parent1c1a18ccba113c50a7ef4f52e455a104e0d28905 (diff)
"remove grum_plugins_classes-2 and AMM plugin
asked in topic #p98003" git-svn-id: http://piwigo.org/svn/branches/2.0@2791 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/grum_plugins_classes-2/genericjs.js')
-rwxr-xr-xplugins/grum_plugins_classes-2/genericjs.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/plugins/grum_plugins_classes-2/genericjs.js b/plugins/grum_plugins_classes-2/genericjs.js
deleted file mode 100755
index 656f8efad..000000000
--- a/plugins/grum_plugins_classes-2/genericjs.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/* -----------------------------------------------------------------------------
- file: genricjs.js
- file version: 1.0
- date: 2008-01-02
- ------------------------------------------------------------------------------
- author: grum at grum.dnsalias.com
- << May the Little SpaceFrog be with you >>
- ------------------------------------------------------------------------------
-
- this classes provides base functions to make easiest a compliant code with
- FF2.0 & IE7.0
-
-
- ------------------------------------------------------------------------------
- HISTORY VERSION
-
- -------------------------------------------------------------------------- */
-
-
-
-/*
- this is an implementation of the function <indexOf> to the Array class, as
- defined in the ECMA-262 standard
- for more information, see at http://developer.mozilla.org/fr/docs/R%C3%A9f%C3%A9rence_de_JavaScript_1.5_Core:Objets_globaux:Array:indexOf
-
- not implemented in IE 7.0
-*/
-if (!Array.prototype.indexOf)
-{
- Array.prototype.indexOf = function(elt /*, from*/)
- {
- var len = this.length;
-
- var from = Number(arguments[1]) || 0;
- from = (from < 0)
- ? Math.ceil(from)
- : Math.floor(from);
- if (from < 0)
- from += len;
-
- for (; from < len; from++)
- {
- if (from in this &&
- this[from] === elt)
- return from;
- }
- return -1;
- };
-}