diff options
author | ot <ot@localhost> | 2007-05-31 02:23:31 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-05-31 02:23:31 +0000 |
commit | 2230ea5f39406b35c4d02f800d464a6d9a90fc51 (patch) | |
tree | 61081b1e744e34b5b15dcbf0ee9942b82457bdae /htdocs/scripts/tabtastic/attachevent.js | |
parent | 10cba58a14f1ce9eec681467b51c515c4a12159e (diff) | |
download | markup-validator-2230ea5f39406b35c4d02f800d464a6d9a90fc51.zip markup-validator-2230ea5f39406b35c4d02f800d464a6d9a90fc51.tar.gz markup-validator-2230ea5f39406b35c4d02f800d464a6d9a90fc51.tar.bz2 |
unused
Diffstat (limited to 'htdocs/scripts/tabtastic/attachevent.js')
-rw-r--r-- | htdocs/scripts/tabtastic/attachevent.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/htdocs/scripts/tabtastic/attachevent.js b/htdocs/scripts/tabtastic/attachevent.js deleted file mode 100644 index eaad7b8..0000000 --- a/htdocs/scripts/tabtastic/attachevent.js +++ /dev/null @@ -1,34 +0,0 @@ -//*** This code is copyright 2003 by Gavin Kistner, gavin@refinery.com
-//*** It is covered under the license viewable at http://phrogz.net/JS/_ReuseLicense.txt
-//*** Reuse or modification is free provided you abide by the terms of that license.
-//*** (Including the first two lines above in your source code satisfies the conditions.)
-
-
-//***Cross browser attach event function. For 'evt' pass a string value with the leading "on" omitted
-//***e.g. AttachEvent(window,'load',MyFunctionNameWithoutParenthesis,false);
-
-function AttachEvent(obj,evt,fnc,useCapture){
- if (!useCapture) useCapture=false;
- if (obj.addEventListener){
- obj.addEventListener(evt,fnc,useCapture);
- return true;
- } else if (obj.attachEvent) return obj.attachEvent("on"+evt,fnc);
- else{
- MyAttachEvent(obj,evt,fnc);
- obj['on'+evt]=function(){ MyFireEvent(obj,evt) };
- }
-}
-
-//The following are for browsers like NS4 or IE5Mac which don't support either
-//attachEvent or addEventListener
-function MyAttachEvent(obj,evt,fnc){
- if (!obj.myEvents) obj.myEvents={};
- if (!obj.myEvents[evt]) obj.myEvents[evt]=[];
- var evts = obj.myEvents[evt];
- evts[evts.length]=fnc;
-}
-function MyFireEvent(obj,evt){
- if (!obj || !obj.myEvents || !obj.myEvents[evt]) return;
- var evts = obj.myEvents[evt];
- for (var i=0,len=evts.length;i<len;i++) evts[i]();
-}
|