ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject [2/2] incubator-ponymail git commit: this has been replaced with inject()
Date Fri, 02 Sep 2016 11:32:47 GMT
this has been replaced with inject()


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/1f553aa7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/1f553aa7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/1f553aa7

Branch: refs/heads/coffee-and-cake
Commit: 1f553aa7e04c9a21826eb552d977e74868f33ec8
Parents: 510bfac
Author: Daniel Gruno <humbedooh@apache.org>
Authored: Fri Sep 2 13:32:17 2016 +0200
Committer: Daniel Gruno <humbedooh@apache.org>
Committed: Fri Sep 2 13:32:17 2016 +0200

----------------------------------------------------------------------
 site/js/coffee/dom_utils.coffee | 24 ------------------------
 1 file changed, 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/1f553aa7/site/js/coffee/dom_utils.coffee
----------------------------------------------------------------------
diff --git a/site/js/coffee/dom_utils.coffee b/site/js/coffee/dom_utils.coffee
index 178e8b0..5546949 100644
--- a/site/js/coffee/dom_utils.coffee
+++ b/site/js/coffee/dom_utils.coffee
@@ -66,30 +66,6 @@ class HTML
                     @element.inject(children)
         return @element
 
-###*
-# App: Shortcut for document.appendChild with modifications
-# - a: the element to add things to
-# - b: one or more elements to add.
-# Example: app(get('mydiv'), "Add some text to mydiv")
-###
-app = (a,b) ->
-    ### If it's a list of elems, iterate ###
-    if isArray b
-        for item in b
-            ### String? Convert to textNode first then ###
-            if typeof item is "string"
-                item = txt(item)
-            ### In any case, add it now ###
-            a.appendChild(item)
-    else
-        ### Otherwise, just add ###
-        ###  String? Convert first ###
-        if typeof b is "string"
-            a.appendChild(txt(b))
-        ### Not a string, add normally ###
-        return a.appendChild(b)
-
-
 ### Set: shortcut for a.setAttribute(b,c) ###
 set = (a, b, c) ->
     return a.setAttribute(b,c)


Mime
View raw message