Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A1A40200B78 for ; Fri, 2 Sep 2016 13:32:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A022D160ACB; Fri, 2 Sep 2016 11:32:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E66D6160AAB for ; Fri, 2 Sep 2016 13:32:50 +0200 (CEST) Received: (qmail 97043 invoked by uid 500); 2 Sep 2016 11:32:50 -0000 Mailing-List: contact commits-help@ponymail.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ponymail.incubator.apache.org Delivered-To: mailing list commits@ponymail.incubator.apache.org Received: (qmail 97034 invoked by uid 99); 2 Sep 2016 11:32:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2016 11:32:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9F3C4C0B4A for ; Fri, 2 Sep 2016 11:32:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id vRvQ0VdCrHbo for ; Fri, 2 Sep 2016 11:32:48 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 0AAF1611F1 for ; Fri, 2 Sep 2016 11:32:47 +0000 (UTC) Received: (qmail 96996 invoked by uid 99); 2 Sep 2016 11:32:47 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2016 11:32:47 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 005F9DFB89; Fri, 2 Sep 2016 11:32:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: humbedooh@apache.org To: commits@ponymail.incubator.apache.org Date: Fri, 02 Sep 2016 11:32:47 -0000 Message-Id: <72d1d39acd3d439dba3e3b0f7a00ff0d@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/2] incubator-ponymail git commit: this has been replaced with inject() archived-at: Fri, 02 Sep 2016 11:32:51 -0000 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 Authored: Fri Sep 2 13:32:17 2016 +0200 Committer: Daniel Gruno 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)