summaryrefslogtreecommitdiffstats
path: root/ui/webui
diff options
context:
space:
mode:
authorvitalyp@chromium.org <vitalyp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-14 12:33:17 +0000
committervitalyp@chromium.org <vitalyp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-14 12:34:50 +0000
commit15b0e24648f76942008908abf35b5b6417c37165 (patch)
tree60685d05be3ec2794dcf252adcdb31aa0f455d78 /ui/webui
parenta450d86846732d0002e50a29a4bd51957cf74d5d (diff)
downloadchromium_src-15b0e24648f76942008908abf35b5b6417c37165.zip
chromium_src-15b0e24648f76942008908abf35b5b6417c37165.tar.gz
chromium_src-15b0e24648f76942008908abf35b5b6417c37165.tar.bz2
Handle property definition by {cr|Object}.defineProperty() in compiler pass
BUG=393873 R=dbeam@chromium.org,tbreisacher@chromium.org TEST=third_party/closure_compiler/runner/how_to_test_compiler_pass.md Review URL: https://codereview.chromium.org/460163002 Cr-Commit-Position: refs/heads/master@{#289535} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289535 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/webui')
-rw-r--r--ui/webui/resources/js/cr.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/webui/resources/js/cr.js b/ui/webui/resources/js/cr.js
index dbcbb82..757039d 100644
--- a/ui/webui/resources/js/cr.js
+++ b/ui/webui/resources/js/cr.js
@@ -75,17 +75,20 @@ var cr = function() {
/**
* Plain old JS property where the backing data is stored as a "private"
* field on the object.
+ * Use for properties of any type. Type will not be checked.
*/
JS: 'js',
/**
* The property backing data is stored as an attribute on an element.
+ * Use only for properties of type {string}.
*/
ATTR: 'attr',
/**
* The property backing data is stored as an attribute on an element. If the
* element has the attribute then the value is true.
+ * Use only for properties of type {boolean}.
*/
BOOL_ATTR: 'boolAttr'
};