diff options
Diffstat (limited to 'contexts/data/lib/closure-library/closure/goog/reflect')
4 files changed, 0 insertions, 155 deletions
diff --git a/contexts/data/lib/closure-library/closure/goog/reflect/.svn/all-wcprops b/contexts/data/lib/closure-library/closure/goog/reflect/.svn/all-wcprops deleted file mode 100644 index 08c4502..0000000 --- a/contexts/data/lib/closure-library/closure/goog/reflect/.svn/all-wcprops +++ /dev/null @@ -1,11 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 45 -/svn/!svn/ver/1196/trunk/closure/goog/reflect -END -reflect.js -K 25 -svn:wc:ra_dav:version-url -V 56 -/svn/!svn/ver/1196/trunk/closure/goog/reflect/reflect.js -END diff --git a/contexts/data/lib/closure-library/closure/goog/reflect/.svn/entries b/contexts/data/lib/closure-library/closure/goog/reflect/.svn/entries deleted file mode 100644 index 84fb358..0000000 --- a/contexts/data/lib/closure-library/closure/goog/reflect/.svn/entries +++ /dev/null @@ -1,62 +0,0 @@ -10 - -dir -1494 -http://closure-library.googlecode.com/svn/trunk/closure/goog/reflect -http://closure-library.googlecode.com/svn - - - -2011-08-08T17:56:49.000000Z -1196 -nicksantos@google.com - - - - - - - - - - - - - - -0b95b8e8-c90f-11de-9d4f-f947ee5921c8 - -reflect.js -file - - - - -2011-12-23T22:42:29.437342Z -86e6078d65fcecef53a3e0b30ff489cc -2011-08-08T17:56:49.000000Z -1196 -nicksantos@google.com -has-props - - - - - - - - - - - - - - - - - - - - -2202 - diff --git a/contexts/data/lib/closure-library/closure/goog/reflect/.svn/prop-base/reflect.js.svn-base b/contexts/data/lib/closure-library/closure/goog/reflect/.svn/prop-base/reflect.js.svn-base deleted file mode 100644 index 530636b..0000000 --- a/contexts/data/lib/closure-library/closure/goog/reflect/.svn/prop-base/reflect.js.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:mime-type -V 15 -text/javascript -END diff --git a/contexts/data/lib/closure-library/closure/goog/reflect/.svn/text-base/reflect.js.svn-base b/contexts/data/lib/closure-library/closure/goog/reflect/.svn/text-base/reflect.js.svn-base deleted file mode 100644 index df09e15..0000000 --- a/contexts/data/lib/closure-library/closure/goog/reflect/.svn/text-base/reflect.js.svn-base +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2009 The Closure Library Authors. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS-IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @fileoverview Useful compiler idioms. - * - */ - -goog.provide('goog.reflect'); - - -/** - * Syntax for object literal casts. - * @see http://go/jscompiler-renaming - * @see http://code.google.com/p/closure-compiler/wiki/ - * ExperimentalTypeBasedPropertyRenaming - * - * Use this if you have an object literal whose keys need to have the same names - * as the properties of some class even after they are renamed by the compiler. - * - * @param {!Function} type Type to cast to. - * @param {Object} object Object literal to cast. - * @return {Object} The object literal. - */ -goog.reflect.object = function(type, object) { - return object; -}; - - -/** - * To assert to the compiler that an operation is needed when it would - * otherwise be stripped. For example: - * <code> - * // Force a layout - * goog.reflect.sinkValue(dialog.offsetHeight); - * </code> - * @type {!Function} - */ -goog.reflect.sinkValue = function(x) { - goog.reflect.sinkValue[' '](x); - return x; -}; - - -/** - * The compiler should optimize this function away iff no one ever uses - * goog.reflect.sinkValue. - */ -goog.reflect.sinkValue[' '] = goog.nullFunction; - - -/** - * Check if a property can be accessed without throwing an exception. - * @param {Object} obj The owner of the property. - * @param {string} prop The property name. - * @return {boolean} Whether the property is accessible. Will also return true - * if obj is null. - */ -goog.reflect.canAccessProperty = function(obj, prop) { - /** @preserveTry */ - try { - goog.reflect.sinkValue(obj[prop]); - return true; - } catch (e) {} - return false; -}; |