From fb807d307c70c98e53d73c71dfc216040a1691d2 Mon Sep 17 00:00:00 2001 From: hallgren Date: Fri, 17 Dec 2010 16:42:08 +0000 Subject: [PATCH] minibar/support.js: fix comment typos and add links --- src/runtime/javascript/minibar/support.js | 6 ++++-- 1 file 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)