Merge pull request #23 from pvsaikrishna/moduleexports

Exporting http object to use it through clobbers target defined .
This commit is contained in:
Andrew Stephan
2014-11-10 10:32:42 -05:00
+3 -1
View File
@@ -63,6 +63,8 @@ var http = {
}
};
module.exports = http;
if (typeof angular !== "undefined") {
angular.module('cordovaHTTP', []).factory('cordovaHTTP', function($timeout, $q) {
function makePromise(fn, args, async) {
@@ -126,4 +128,4 @@ if (typeof angular !== "undefined") {
});
} else {
window.cordovaHTTP = http;
}
}