Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: chrome/common/extensions/docs/examples/api/fontSettings/js/event_tracker.js

Issue 11227018: Font Settings API: UI overhaul of example extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update version and description string Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 /** @fileoverview EventTracker is a simple class that manages the addition and 5 /** @fileoverview EventTracker is a simple class that manages the addition and
6 * removal of DOM event listeners. In particular, it keeps track of all 6 * removal of DOM event listeners. In particular, it keeps track of all
7 * listeners that have been added and makes it easy to remove some or all of 7 * listeners that have been added and makes it easy to remove some or all of
8 * them without requiring all the information again. This is particularly 8 * them without requiring all the information again. This is particularly
9 * handy when the listener is a generated function such as a lambda or the 9 * handy when the listener is a generated function such as a lambda or the
10 * result of calling Function.bind. 10 * result of calling Function.bind.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 * @param {EventTracker.Entry} h The entry describing the listener to remove. 88 * @param {EventTracker.Entry} h The entry describing the listener to remove.
89 * @private 89 * @private
90 */ 90 */
91 EventTracker.removeEventListener_ = function(h) { 91 EventTracker.removeEventListener_ = function(h) {
92 h.node.removeEventListener(h.eventType, h.listener, h.capture); 92 h.node.removeEventListener(h.eventType, h.listener, h.capture);
93 }; 93 };
94 94
95 return EventTracker; 95 return EventTracker;
96 })(); 96 })();
97 97
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698