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

Unified Diff: native_client_sdk/src/examples/demo/drive/example.js

Issue 111833002: Add missing argument to Element.setAttribute() calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
Index: native_client_sdk/src/examples/demo/drive/example.js
diff --git a/native_client_sdk/src/examples/demo/drive/example.js b/native_client_sdk/src/examples/demo/drive/example.js
index ae6326f48da70f67509f4696d3793878dce1b6e5..95956b23a92f819f506b4aaf10c186d5eaceb811 100644
--- a/native_client_sdk/src/examples/demo/drive/example.js
+++ b/native_client_sdk/src/examples/demo/drive/example.js
@@ -15,7 +15,7 @@ function onGetAuthToken(authToken) {
var signInEl = document.getElementById('signIn');
var getFileEl = document.getElementById('getFile');
if (authToken) {
- signInEl.setAttribute('hidden');
+ signInEl.setAttribute('hidden', '');
getFileEl.removeAttribute('hidden');
window.authToken = authToken;
@@ -26,7 +26,7 @@ function onGetAuthToken(authToken) {
// this app. Display a button to let the user sign in and authorize this
// application.
signInEl.removeAttribute('hidden');
- getFileEl.setAttribute('hidden');
+ getFileEl.setAttribute('hidden', '');
}
};
« no previous file with comments | « native_client_sdk/src/examples/api/var_dictionary/example.js ('k') | native_client_sdk/src/examples/demo/nacl_io/example.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698