ng-feedhenry
Advanced tools
Comparing version 0.2.52 to 0.2.53
{ | ||
"name": "ng-feedhenry", | ||
"version": "0.2.52", | ||
"version": "0.2.53", | ||
"description": "AngularJS friendly FeedHenry SDK wrapper.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/feedhenry-staff/ngFeedHenry", |
{ | ||
"name": "ng-feedhenry", | ||
"version": "0.2.52", | ||
"version": "0.2.53", | ||
"main": "./src/ngFH.js", | ||
@@ -5,0 +5,0 @@ "description": "AngularJS friendly FeedHenry SDK wrapper.", |
@@ -5,4 +5,3 @@ 'use strict'; | ||
, fhlog = require('fhlog') | ||
, fh = window.$fh // Once fh-js-sdk is on npm we can require it here | ||
, timeout = 30 * 1000; | ||
, fh = window.$fh; // Once fh-js-sdk is on npm we can require it here | ||
@@ -12,3 +11,3 @@ var DEFAULT_OPTS = { | ||
path: '/', | ||
timeout: timeout, | ||
timeout: 30 * 1000, | ||
contentType: 'application/json', | ||
@@ -59,3 +58,3 @@ data: {} | ||
deferred.reject(res || new Error('No Response'), failDetails); | ||
}, function (err) { | ||
}, function (res) { | ||
deferred.reject(res || new Error('No Response'), failDetails); | ||
@@ -173,3 +172,3 @@ }); | ||
this.getDefaultTimeout = function () { | ||
return timeout; | ||
return DEFAULT_OPTS.timeout; | ||
}; | ||
@@ -184,3 +183,3 @@ | ||
this.setDefaultTimeout = function(t) { | ||
timeout = t; | ||
DEFAULT_OPTS.timeout = t; | ||
}; | ||
@@ -187,0 +186,0 @@ |
Sorry, the diff of this file is too big to display
366709
10538