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

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js

Issue 667933003: Ensure existence of queried elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make some parameters non-nullable. Created 6 years, 2 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 | « ui/file_manager/file_manager/foreground/js/ui/location_line.js ('k') | ui/webui/resources/js/util.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js b/ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js
index 2047e31f1c69b791b07155706e95300a9e7f583d..9f9fce323cf89c0a46ce1f44e260b1ddf00773bc 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js
@@ -49,14 +49,14 @@ function ProgressCenterItemElement(document) {
* @private
*/
ProgressCenterItemElement.safelySetAnimation_ = function(callback) {
- var requestId = requestAnimationFrame(function() {
+ var requestId = window.requestAnimationFrame(function() {
// The transition start properties currently set are rendered at this frame.
// And the transition end properties set by the callback is rendered at the
// next frame.
- requestId = requestAnimationFrame(callback);
+ requestId = window.requestAnimationFrame(callback);
});
return function() {
- cancelAnimationFrame(requestId);
+ window.cancelAnimationFrame(requestId);
};
};
@@ -168,13 +168,13 @@ ProgressCenterItemElement.prototype.onTransitionEnd_ = function(event) {
/**
* Progress center panel.
*
- * @param {HTMLElement} element DOM Element of the process center panel.
+ * @param {!Element} element DOM Element of the process center panel.
* @constructor
*/
function ProgressCenterPanel(element) {
/**
* Root element of the progress center.
- * @type {Element}
+ * @type {!Element}
* @private
*/
this.element_ = element;
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/ui/location_line.js ('k') | ui/webui/resources/js/util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698