Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmetcalf committed Feb 9, 2017
1 parent 741b5d7 commit d4d5a3c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "lie",
"version": "3.1.0"
"version": "3.1.1"
}
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lie",
"version": "3.1.0",
"version": "3.1.1",
"description": "A minimal and fast promise implementation",
"repo": "calvinmetcalf/lie",
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion dist/lie.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ handlers.reject = function (self, error) {
function getThen(obj) {
// Make sure we only access the accessor once as required by the spec
var then = obj && obj.then;
if (obj && typeof obj === 'object' && typeof then === 'function') {
if (obj && (typeof obj === 'object' || typeof obj === 'function') && typeof then === 'function') {
return function appyThen() {
then.apply(obj, arguments);
};
Expand Down
2 changes: 1 addition & 1 deletion dist/lie.min.js

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

2 changes: 1 addition & 1 deletion dist/lie.polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ handlers.reject = function (self, error) {
function getThen(obj) {
// Make sure we only access the accessor once as required by the spec
var then = obj && obj.then;
if (obj && typeof obj === 'object' && typeof then === 'function') {
if (obj && (typeof obj === 'object' || typeof obj === 'function') && typeof then === 'function') {
return function appyThen() {
then.apply(obj, arguments);
};
Expand Down
2 changes: 1 addition & 1 deletion dist/lie.polyfill.min.js

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

2 changes: 1 addition & 1 deletion lib/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ handlers.reject = function (self, error) {
function getThen(obj) {
// Make sure we only access the accessor once as required by the spec
var then = obj && obj.then;
if (obj && typeof obj === 'object' && typeof then === 'function') {
if (obj && (typeof obj === 'object' || typeof obj === 'function') && typeof then === 'function') {
return function appyThen() {
then.apply(obj, arguments);
};
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ handlers.reject = function (self, error) {
function getThen(obj) {
// Make sure we only access the accessor once as required by the spec
var then = obj && obj.then;
if (obj && typeof obj === 'object' && typeof then === 'function') {
if (obj && (typeof obj === 'object' || typeof obj === 'function') && typeof then === 'function') {
return function appyThen() {
then.apply(obj, arguments);
};
Expand Down

0 comments on commit d4d5a3c

Please sign in to comment.