| Index: chrome/browser/resources/ntp4/nav_dot.js
|
| diff --git a/chrome/browser/resources/ntp4/nav_dot.js b/chrome/browser/resources/ntp4/nav_dot.js
|
| index 1686e80f1755079338db5f1c3455f6249c298e79..178e5564c729daae97e0c5233fc1727ced634c53 100644
|
| --- a/chrome/browser/resources/ntp4/nav_dot.js
|
| +++ b/chrome/browser/resources/ntp4/nav_dot.js
|
| @@ -92,10 +92,15 @@ cr.define('ntp4', function() {
|
| },
|
|
|
| /**
|
| - * Removes the dot from the page after transitioning to 0 width.
|
| + * Removes the dot from the page. If |opt_animate| is truthy, we first
|
| + * transition the element to 0 width.
|
| + * @param {=boolean} animate Whether to animate the removal or not.
|
| */
|
| - animateRemove: function() {
|
| - this.classList.add('small');
|
| + remove: function(opt_animate) {
|
| + if (opt_animate)
|
| + this.classList.add('small');
|
| + else
|
| + this.parentNode.removeChild(this);
|
| },
|
|
|
| /**
|
| @@ -178,7 +183,7 @@ cr.define('ntp4', function() {
|
| onInputBlur_: function(e) {
|
| window.getSelection().removeAllRanges();
|
| this.displayTitle = this.input_.value;
|
| - ntp4.saveAppPageName(this.page_, this.displayTitle);
|
| + ntp4.saveAppsPageName(this.page_, this.displayTitle);
|
| this.input_.disabled = true;
|
| },
|
|
|
|
|