| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 define('async_waiter', [ | 5 define('async_waiter', [ |
| 6 'mojo/public/js/bindings/support', | 6 'mojo/public/js/support', |
| 7 ], function(supportModule) { | 7 ], function(supportModule) { |
| 8 /** | 8 /** |
| 9 * @module async_waiter | 9 * @module async_waiter |
| 10 */ | 10 */ |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * @callback module:async_waiter.AsyncWaiter.Callback | 13 * @callback module:async_waiter.AsyncWaiter.Callback |
| 14 * @param {number} result The result of waiting. | 14 * @param {number} result The result of waiting. |
| 15 */ | 15 */ |
| 16 | 16 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 * @param {number} result The result of the wait. | 84 * @param {number} result The result of the wait. |
| 85 * @private | 85 * @private |
| 86 */ | 86 */ |
| 87 AsyncWaiter.prototype.onHandleReady_ = function(result) { | 87 AsyncWaiter.prototype.onHandleReady_ = function(result) { |
| 88 this.id_ = null; | 88 this.id_ = null; |
| 89 this.callback_(result); | 89 this.callback_(result); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 return {AsyncWaiter: AsyncWaiter}; | 92 return {AsyncWaiter: AsyncWaiter}; |
| 93 }); | 93 }); |
| OLD | NEW |