ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject [1/2] incubator-ponymail git commit: fix commentary for HTML class
Date Fri, 02 Sep 2016 12:30:21 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/coffee-and-cake 1f553aa7e -> 42e2b482b


fix commentary for HTML class


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

Branch: refs/heads/coffee-and-cake
Commit: 8941f3e6d009b78048a2404dbf7338c71fd2244b
Parents: 1f553aa
Author: Daniel Gruno <humbedooh@apache.org>
Authored: Fri Sep 2 13:35:08 2016 +0200
Committer: Daniel Gruno <humbedooh@apache.org>
Committed: Fri Sep 2 13:35:08 2016 +0200

----------------------------------------------------------------------
 site/js/coffee/dom_utils.coffee | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/8941f3e6/site/js/coffee/dom_utils.coffee
----------------------------------------------------------------------
diff --git a/site/js/coffee/dom_utils.coffee b/site/js/coffee/dom_utils.coffee
index 5546949..951eb72 100644
--- a/site/js/coffee/dom_utils.coffee
+++ b/site/js/coffee/dom_utils.coffee
@@ -20,13 +20,22 @@
 ####################################################
 
 ###*
-# mk: DOM creator
+# HTML: DOM creator class
 # args:
 # - type: HTML element type (div, table, p etc) to produce
 # - params: hash of element params to add (class, style etc)
 # - children: optional child or children objects to insert into the new element
-# Example: mk('div', { class: "footer", style: {fontWeight: "bold"}}, "Some text inside a
div")
+# Example:
+# div = new HTML('div', {
+#    class: "footer",
+#    style: {
+#        fontWeight: "bold"
+#    }
+#}, "Some text inside a div")
 ###
+
+
+
 class HTML
     constructor: (type, params, children) ->
         ### create the raw element ###


Mime
View raw message