Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2052)

Unified Diff: appengine_apps/chromium_status/static/js/common/dom_util.js

Issue 778533003: Moved chromium_status to appengine/ (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine_apps/chromium_status/static/js/common/dom_util.js
diff --git a/appengine_apps/chromium_status/static/js/common/dom_util.js b/appengine_apps/chromium_status/static/js/common/dom_util.js
deleted file mode 100644
index 68b4c9d1333e9b2573ed9614dfc4b3221229d668..0000000000000000000000000000000000000000
--- a/appengine_apps/chromium_status/static/js/common/dom_util.js
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * Helper utility functions for manipulating the DOM.
- */
-var DomUtil = {};
-
-/**
- * Toggles the visibility on a node.
- *
- * @param {DOMNode} n The node to show/hide.
- * @param {boolean} display False to hide the node.
- */
-DomUtil.DisplayNode = function(n, display) {
- n.style.display = display ? "" : "none";
-};
-
-/**
- * Appends a new node with tag |type| to |parent|.
- *
- * @param {DOMNode} parent
- * @param {string} type
- * @return {DOMNode} The node that was just created.
- */
-DomUtil.AddNode = function(parent, type) {
- if (!type) {
- throw ("type must be defined");
- }
- var doc = parent.ownerDocument;
- var n = doc.createElement(type);
- parent.appendChild(n);
- return n;
-};
-
-/**
- * Adds text to node |parent|.
- *
- * @param {DOMNode} parent
- * @param {string} text
- */
-DomUtil.AddText = function(parent, text) {
- var doc = parent.ownerDocument;
- var n = doc.createTextNode(text);
- parent.appendChild(n);
- return n;
-};

Powered by Google App Engine
This is Rietveld 408576698