Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / ui / file_manager / file_manager / foreground / js / ui / progress_center_panel.js
index 929a933..3d65e9e 100644 (file)
@@ -235,7 +235,7 @@ function ProgressCenterPanel(element) {
   });
 
   /**
-   * Callback to becalled with the ID of the progress item when the cancel
+   * Callback to be called with the ID of the progress item when the cancel
    * button is clicked.
    */
   this.cancelCallback = null;
@@ -280,6 +280,16 @@ ProgressCenterPanel.getToggleAnimation_ = function(document) {
  */
 ProgressCenterPanel.RESET_DELAY_TIME_MS_ = 5000;
 
+ProgressCenterPanel.prototype = {
+  /**
+   * Root element of the progress center.
+   * @type {HTMLElement}
+   */
+  get element() {
+    return this.element_;
+  }
+};
+
 /**
  * Updates an item to the progress center panel.
  * @param {!ProgressCenterItem} item Item including new contents.
@@ -370,7 +380,7 @@ ProgressCenterPanel.prototype.updateCloseView_ = function() {
   var normalSummarizedItem =
       this.normalItemGroup_.getSummarizedItem(this.quietItemGroup_.numErrors);
   if (normalSummarizedItem) {
-    // If the quiet animation is overrided by normal summarized item, discard
+    // If the quiet animation is overridden by normal summarized item, discard
     // the quiet animation.
     if (this.quietItemGroup_.isSummarizedAnimated()) {
       var oldState = this.quietItemGroup_.state;