Skip to content

Commit

Permalink
remove document object, updated dependencies and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
silverbucket committed Oct 19, 2014
1 parent 739af8b commit 762ebf3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webfinger.js",
"version": "2.0.3",
"version": "2.0.4",
"description": "a simple webfinger record lookup library",
"license": "AGPL",
"private": false,
Expand All @@ -14,7 +14,7 @@
"email": "[email protected]"
},
"dependencies": {
"xmlhttprequest": "1.5.x"
"xmlhttprequest": "^1.6.0"
},
"devDependencies": {
"jaribu": "*"
Expand Down
13 changes: 5 additions & 8 deletions src/webfinger.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// -*- mode:js; js-indent-level:2 -*-
/*!
* webfinger.js
* version 2.0.3
* version 2.0.4
* http://github.com/silverbucket/webfinger.js
*
* Developed and Maintained by:
Expand All @@ -16,17 +16,16 @@
* information must remain.
*
*/

if (typeof XMLHttpRequest === 'undefined') {
XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest;
}
if (typeof document === 'undefined') {
var document = {};
}

if (typeof window === 'undefined') {
var window = {};
}

(function (window, document, undefined) {
(function (window, undefined) {

// URI to property name map
var LINK_URI_MAPS = {
Expand Down Expand Up @@ -135,7 +134,6 @@ if (typeof window === 'undefined') {
return true;
};


WebFinger.prototype._log = function () {
var args = Array.prototype.splice.call(arguments, 0);
if ((this.config.debug) && (LOGABLE)) {
Expand Down Expand Up @@ -197,7 +195,6 @@ if (typeof window === 'undefined') {
cb(null, result);
};


WebFinger.prototype.lookup = function (address, cb) {
if (typeof address !== 'string') {
throw new Error('first parameter must be a user address');
Expand Down Expand Up @@ -280,7 +277,7 @@ if (typeof window === 'undefined') {

window.WebFinger = WebFinger;

})(window, document);
})(window);

if (typeof (define) === 'function' && define.amd) {
define([], function () { return window.WebFinger; });
Expand Down

0 comments on commit 762ebf3

Please sign in to comment.