diff options
| author | hallgren <hallgren@chalmers.se> | 2010-12-17 16:42:08 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2010-12-17 16:42:08 +0000 |
| commit | 9ad094577aa7f2137e0b5a8b1b15b25bb6c74802 (patch) | |
| tree | 59e7ce501c0ab8072ec119e5bb405ce08633cdbe /src/runtime/javascript/minibar | |
| parent | 2e6269ddb4c8189ebef50a9d82f642733b291f5a (diff) | |
minibar/support.js: fix comment typos and add links
Diffstat (limited to 'src/runtime/javascript/minibar')
| -rw-r--r-- | src/runtime/javascript/minibar/support.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/runtime/javascript/minibar/support.js b/src/runtime/javascript/minibar/support.js index 6b2f2339f..03757173d 100644 --- a/src/runtime/javascript/minibar/support.js +++ b/src/runtime/javascript/minibar/support.js @@ -6,7 +6,7 @@ function element(id) { /* --- JavaScript tricks ---------------------------------------------------- */ -// To be able to object methods that refer to "this" as callbacks +// To be able to use object methods that refer to "this" as callbacks // See section 3.3 of https://github.com/spencertipping/js-in-ten-minutes/raw/master/js-in-ten-minutes.pdf function bind(f, this_value) { return function () {return f.apply (this_value, arguments)}; @@ -35,7 +35,7 @@ function jsonp(url,callback) var json = {next:0}; -// Like jsonp, but instead of passing the name of the ballback function, you +// Like jsonp, but instead of passing the name of the callback function, you // pass the callback function directly, making it possible to use anonymous // functions. function jsonpf(url,callback) @@ -52,6 +52,8 @@ function GetXmlHttpObject(handler) var objXMLHttp=null if (window.XMLHttpRequest) { + // See http://www.w3.org/TR/XMLHttpRequest/ + // https://developer.mozilla.org/en/xmlhttprequest objXMLHttp=new XMLHttpRequest() } else if (window.ActiveXObject) |
