From 0ee3e2b4353b2dde3a2362c9be9c76fcb5d8ffc8 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 22 May 2016 13:31:12 -0400 Subject: clean up assets/js/util.js --- data/assets/js/util.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'data') 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, -- cgit v1.2.3