mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
Monotone-Parent: 5444115146b03d377270a0ee98d9e240781fcc6e
Monotone-Revision: 4351ae4fc2e351a77cbb70655cd3da5ab2af66c7 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-04-24T17:40:52
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2012-04-24 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/HTMLElement.js: get "HTMLCollection"
|
||||
and "NodeList" classes by class rather than by direct reference.
|
||||
|
||||
* UI/WebServerResources/generic.js (clickEventWrapper): pass the
|
||||
value of "this" to the invoked callback.
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
/* -*- Mode: js-mode; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
|
||||
[HTMLCollection, NodeList].each(
|
||||
function (contClass) {
|
||||
if (contClass) {
|
||||
["HTMLCollection", "NodeList"].each(
|
||||
function (className) {
|
||||
if (className in window) {
|
||||
var contClass = window[className];
|
||||
var _each = contClass.prototype.forEach;
|
||||
if (!_each) {
|
||||
_each = function HTMLElement_each(iterator, context) {
|
||||
|
||||
Reference in New Issue
Block a user