Index: chrome/common/extensions/docs/examples/extensions/calendar/javascript/util.js |
diff --git a/chrome/common/extensions/docs/examples/extensions/calendar/javascript/util.js b/chrome/common/extensions/docs/examples/extensions/calendar/javascript/util.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1ad5ac69c58976ef2673fa9d5214582d9cf6117e |
--- /dev/null |
+++ b/chrome/common/extensions/docs/examples/extensions/calendar/javascript/util.js |
@@ -0,0 +1,14 @@ |
+/** |
+ * Copyright (c) 2010 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. |
+ */ |
+ |
+/** |
+ * Alias for document.getElementById. |
+ * @param {string} id The id of the element. |
+ * @return {HTMLElement} The html element for the given element id. |
+ */ |
+function $(id) { |
+ return document.getElementById(id); |
+}; |