From 34167b9571337f84f258758264624241edc6344f Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Thu, 1 Oct 2015 09:40:55 -0700 Subject: [PATCH] Remove some unused code Signed-off-by: Jeff Davis --- src/od_api.coffee | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/od_api.coffee b/src/od_api.coffee index a300c16..f98c427 100644 --- a/src/od_api.coffee +++ b/src/od_api.coffee @@ -77,36 +77,6 @@ define [ # it to a query string. data: data - # Convert a serialized array into a serialized object - serializeObject = (a) -> - o = {} - $.each a, -> - v = @value or '' - if (n = o[@name]) isnt undefined - o[@name] = [n] unless n.push - o[@name].push v - else - o[@name] = v - return o - - # TODO unused - $.fn.extend - - # Convert this serialized array to a serialized object - _serializeObject: -> serializeObject @serializeArray() - - # Serialize this to a json string, an object, an array, a query string, or just return itself - _serializeX: (X) -> - switch X - when 'j' then json.stringify @_serializeX 'o' - when 'k' then json.stringify @_serializeX 'a' - when 'p' then $.param @_serializeX 'a' - when 's' then @serialize() - when 'o' then serializeObject @_serializeX 'a' - when 'a' then @serializeArray() - else @ - - # We define the public interface of the module # TODO wrap od in jquery so that we can use it to trigger events and bind event handlers od = -- 2.11.0