| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1770 this._outgoingCallback(); | 1770 this._outgoingCallback(); |
| 1771 } | 1771 } |
| 1772 } | 1772 } |
| 1773 | 1773 |
| 1774 /** | 1774 /** |
| 1775 * @param {*} value | 1775 * @param {*} value |
| 1776 */ | 1776 */ |
| 1777 function suppressUnused(value) | 1777 function suppressUnused(value) |
| 1778 { | 1778 { |
| 1779 } | 1779 } |
| 1780 |
| 1781 /** |
| 1782 * @constructor |
| 1783 * @param {!T} targetObject |
| 1784 * @template T |
| 1785 */ |
| 1786 function WeakReference(targetObject) |
| 1787 { |
| 1788 this._targetObject = targetObject; |
| 1789 } |
| 1790 |
| 1791 WeakReference.prototype = { |
| 1792 /** |
| 1793 * @return {?T} |
| 1794 */ |
| 1795 get: function() |
| 1796 { |
| 1797 return this._targetObject; |
| 1798 }, |
| 1799 |
| 1800 clear: function() |
| 1801 { |
| 1802 this._targetObject = null; |
| 1803 } |
| 1804 }; |
| 1805 |
| OLD | NEW |