Skip to content

Commit

Permalink
Merge pull request #67 from cferdinandi/development
Browse files Browse the repository at this point in the history
Updated feature test
  • Loading branch information
cferdinandi committed Jun 13, 2018
2 parents 5e9a736 + cf9fbbd commit 83aa9e4
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions dist/atomic.js
@@ -1,5 +1,5 @@
/*!
* atomic v4.2.0: A tiny, Promise-based vanilla JS Ajax/HTTP plugin with great browser support.
* atomic v4.2.1: A tiny, Promise-based vanilla JS Ajax/HTTP plugin with great browser support.
* (c) 2018 Chris Ferdinandi
* MIT License
* https://github.com/cferdinandi/atomic
Expand Down Expand Up @@ -49,7 +49,7 @@
* @return {Boolean} If true, required methods and APIs are supported
*/
var supports = function () {
return !!window.XMLHttpRequest && !!window.JSON && typeof Promise !== 'undefined' && Promise.toString().indexOf('[native code]') !== -1;
return 'XMLHttpRequest' in window && 'JSON' in window && 'Promise' in window;
};

/**
Expand Down
4 changes: 2 additions & 2 deletions dist/atomic.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/atomic.polyfills.js
@@ -1,5 +1,5 @@
/*!
* atomic v4.2.0: A tiny, Promise-based vanilla JS Ajax/HTTP plugin with great browser support.
* atomic v4.2.1: A tiny, Promise-based vanilla JS Ajax/HTTP plugin with great browser support.
* (c) 2018 Chris Ferdinandi
* MIT License
* https://github.com/cferdinandi/atomic
Expand Down Expand Up @@ -1222,7 +1222,7 @@ return Promise$1;
* @return {Boolean} If true, required methods and APIs are supported
*/
var supports = function () {
return !!window.XMLHttpRequest && !!window.JSON && typeof Promise !== 'undefined' && Promise.toString().indexOf('[native code]') !== -1;
return 'XMLHttpRequest' in window && 'JSON' in window && 'Promise' in window;
};

/**
Expand Down
4 changes: 2 additions & 2 deletions dist/atomic.polyfills.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/dist/atomic.js
@@ -1,5 +1,5 @@
/*!
* atomic v4.2.0: A tiny, Promise-based vanilla JS Ajax/HTTP plugin with great browser support.
* atomic v4.2.1: A tiny, Promise-based vanilla JS Ajax/HTTP plugin with great browser support.
* (c) 2018 Chris Ferdinandi
* MIT License
* https://github.com/cferdinandi/atomic
Expand Down Expand Up @@ -49,7 +49,7 @@
* @return {Boolean} If true, required methods and APIs are supported
*/
var supports = function () {
return !!window.XMLHttpRequest && !!window.JSON && typeof Promise !== 'undefined' && Promise.toString().indexOf('[native code]') !== -1;
return 'XMLHttpRequest' in window && 'JSON' in window && 'Promise' in window;
};

/**
Expand Down
4 changes: 2 additions & 2 deletions docs/dist/atomic.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/dist/atomic.polyfills.js
@@ -1,5 +1,5 @@
/*!
* atomic v4.2.0: A tiny, Promise-based vanilla JS Ajax/HTTP plugin with great browser support.
* atomic v4.2.1: A tiny, Promise-based vanilla JS Ajax/HTTP plugin with great browser support.
* (c) 2018 Chris Ferdinandi
* MIT License
* https://github.com/cferdinandi/atomic
Expand Down Expand Up @@ -1222,7 +1222,7 @@ return Promise$1;
* @return {Boolean} If true, required methods and APIs are supported
*/
var supports = function () {
return !!window.XMLHttpRequest && !!window.JSON && typeof Promise !== 'undefined' && Promise.toString().indexOf('[native code]') !== -1;
return 'XMLHttpRequest' in window && 'JSON' in window && 'Promise' in window;
};

/**
Expand Down
4 changes: 2 additions & 2 deletions docs/dist/atomic.polyfills.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "atomic",
"version": "4.2.0",
"version": "4.2.1",
"description": "A tiny, Promise-based vanilla JS Ajax/HTTP plugin with great browser support.",
"main": "./dist/atomic.polyfills.min.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/js/atomic.js
Expand Up @@ -42,7 +42,7 @@
* @return {Boolean} If true, required methods and APIs are supported
*/
var supports = function () {
return !!window.XMLHttpRequest && !!window.JSON && typeof Promise !== 'undefined' && Promise.toString().indexOf('[native code]') !== -1;
return 'XMLHttpRequest' in window && 'JSON' in window && 'Promise' in window;
};

/**
Expand Down

0 comments on commit 83aa9e4

Please sign in to comment.