| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** | |
| 6 * @fileoverview Partial definitions for ECMAScript 7. To compile Files.app, some | |
| 7 * definitions are defined in this file. They should be removed once ES7 | |
| 8 * definitions are ready in closure compiler by default. | |
| 9 * @externs | |
| 10 */ | |
| 11 | |
| 12 /** | |
| 13 * @param {!Object} obj | |
| 14 * @param {function(!Array<!Object>)} callback | |
| 15 * @param {!Array<string>=} acceptList | |
| 16 */ | |
| 17 Object.observe = function(obj, callback, acceptList) {}; | |
| 18 | |
| 19 /** | |
| 20 * @param {!Object} obj | |
| 21 * @param {function(!Array<!Object>)} callback | |
| 22 */ | |
| 23 Object.unobserve = function(obj, callback) {}; | |
| 24 | |
| 25 /** | |
| 26 * @param {!Array} arr | |
| 27 * @param {function(!Array<!Object>)} callback | |
| 28 */ | |
| 29 Array.observe = function(arr, callback) {}; | |
| 30 | |
| 31 /** | |
| 32 * @param {!Array} arr | |
| 33 * @param {function(!Array<!Object>)} callback | |
| 34 */ | |
| 35 Array.unobserve = function(arr, callback) {}; | |
| OLD | NEW |