diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-05-22 13:31:12 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-05-22 13:31:12 -0400 |
commit | 0ee3e2b4353b2dde3a2362c9be9c76fcb5d8ffc8 (patch) | |
tree | 3f47827fac880bfdee7657172316a020a10fb41a | |
parent | 66d2f67e35efb06c38deaacc9bfdd27aca4b2714 (diff) | |
download | guff-0ee3e2b4353b2dde3a2362c9be9c76fcb5d8ffc8.tar.bz2 guff-0ee3e2b4353b2dde3a2362c9be9c76fcb5d8ffc8.zip |
clean up assets/js/util.js
-rw-r--r-- | data/assets/js/util.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/data/assets/js/util.js b/data/assets/js/util.js index ed048ec..3abaabe 100644 --- a/data/assets/js/util.js +++ b/data/assets/js/util.js @@ -1,4 +1,6 @@ -$.fn.reduce = (function() { +jQuery.fn.reduce = (function() { + "use strict"; + if (Array.prototype.reduce) { return Array.prototype.reduce; } else { @@ -18,7 +20,7 @@ jQuery(function($) { window.send = function(fn, args) { return $.ajax({ - url: "/api/" + fn, + url: "/guff/api/" + fn, method: 'POST', dataType: 'json', data: args, |