Changeset 39

Show
Ignore:
Timestamp:
01/27/06 12:00:51 (3 years ago)
Author:
Jan-Klaas Kollhof
Message:

fixed ticket:11 and enhanced the dom.Event object

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jsolait/lib/dom.js

    r30 r39  
    3232    **/ 
    3333    mod.Event=Class(function(publ, supr){ 
     34        publ.__init__=function(type, target){ 
     35            this.type = type; 
     36            this.target = target; 
     37        }; 
    3438        ///The event type. 
    3539        publ.type=null; 
     40        ///The target of the event 
     41        publ.target=null; 
    3642    }); 
    3743 
  • trunk/jsolait/lib/urllib.js

    r22 r39  
    316316        return mod.sendRequest.apply(this,a); 
    317317    }; 
     318     
     319     
     320    /** 
     321        Returns wether or not the module is usable or not. 
     322        @return True if the module can make HTTP requests, false otherwise. 
     323    **/ 
     324    mod.isUsable=function(){ 
     325        try{ 
     326            getHTTP(); 
     327            return true;                 
     328        }catch(e){ 
     329            return false 
     330        } 
     331    }; 
     332     
    318333}); 
    319334