updates to camp and things
This commit is contained in:
parent
16e1340a7c
commit
7724a42e73
442 changed files with 97335 additions and 8 deletions
30
static/js/cljs-runtime/goog.reflect.reflect.js
Normal file
30
static/js/cljs-runtime/goog.reflect.reflect.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
goog.provide("goog.reflect");
|
||||
goog.reflect.object = function(type, object) {
|
||||
return object;
|
||||
};
|
||||
goog.reflect.objectProperty = function(prop, object) {
|
||||
return prop;
|
||||
};
|
||||
goog.reflect.sinkValue = function(x) {
|
||||
goog.reflect.sinkValue[" "](x);
|
||||
return x;
|
||||
};
|
||||
goog.reflect.sinkValue[" "] = function() {
|
||||
};
|
||||
goog.reflect.canAccessProperty = function(obj, prop) {
|
||||
try {
|
||||
goog.reflect.sinkValue(obj[prop]);
|
||||
return true;
|
||||
} catch (e) {
|
||||
}
|
||||
return false;
|
||||
};
|
||||
goog.reflect.cache = function(cacheObj, key, valueFn, opt_keyFn) {
|
||||
const storedKey = opt_keyFn ? opt_keyFn(key) : key;
|
||||
if (Object.prototype.hasOwnProperty.call(cacheObj, storedKey)) {
|
||||
return cacheObj[storedKey];
|
||||
}
|
||||
return cacheObj[storedKey] = valueFn(key);
|
||||
};
|
||||
|
||||
//# sourceMappingURL=goog.reflect.reflect.js.map
|
Loading…
Add table
Add a link
Reference in a new issue