aboutsummaryrefslogtreecommitdiff
path: root/src/js/chrome/js/platform-ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/chrome/js/platform-ajax.js')
-rw-r--r--src/js/chrome/js/platform-ajax.js17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/js/chrome/js/platform-ajax.js b/src/js/chrome/js/platform-ajax.js
index 32aac99..e5b4d1c 100644
--- a/src/js/chrome/js/platform-ajax.js
+++ b/src/js/chrome/js/platform-ajax.js
@@ -13,27 +13,12 @@ fiveui.ajax = fiveui.ajax || {};
*/
fiveui.ajax.get = function(url, options) {
- _.defaults(options, {
- success:function() {},
- error: function() {}
- });
-
- jQuery.ajax(url, {
+ return jQuery.ajax(url, {
cache: false,
dataType: 'text',
- success:function(text) {
- // strip out everything else from the args
- options.success(text);
- },
-
- error:function() {
- // call with no context
- options.error();
- },
-
});
};