| 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;
|
| -};
|
|
|