Monotone-Parent: 5444115146b03d377270a0ee98d9e240781fcc6e

Monotone-Revision: 4351ae4fc2e351a77cbb70655cd3da5ab2af66c7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-24T17:40:52
This commit is contained in:
Wolfgang Sourdeau
2012-04-24 17:40:52 +00:00
parent 781f3fbf7e
commit d0409c79ca
2 changed files with 7 additions and 3 deletions
+3
View File
@@ -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.
+4 -3
View File
@@ -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) {