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

Unified Diff: packages/js_util/dist/js_util.js

Issue 2104113003: Added js and js_util to observatory deps (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 4 years, 6 months 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
« no previous file with comments | « packages/js/src/varargs.dart ('k') | packages/js_util/dist/js_util.min.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/js_util/dist/js_util.js
diff --git a/packages/js_util/dist/js_util.js b/packages/js_util/dist/js_util.js
new file mode 100644
index 0000000000000000000000000000000000000000..b839dd1f0acee4303d82173a0cb48cc48ec41478
--- /dev/null
+++ b/packages/js_util/dist/js_util.js
@@ -0,0 +1,23 @@
+(function (mod) {
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
+ module.exports = mod();
+ else if (typeof define == "function" && define.amd) // AMD
+ return define([], mod);
+ else // Plain browser env
+ this.JsUtil = mod();
+})(function () {
+ "use strict";
+
+ function JsUtil() {
+ }
+
+ JsUtil.newObject = function () {
+ return {};
+ };
+
+ JsUtil.getValue = function (obj, prop) {
+ return obj[prop];
+ };
+
+ return JsUtil;
+});
« no previous file with comments | « packages/js/src/varargs.dart ('k') | packages/js_util/dist/js_util.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698