Monotone-Parent: f90d169fbc251326ea6c8a2f620e125a8a7b4168

Monotone-Revision: 7786f49f6724383b92e91ba7998b99cfb52ceec3

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-20T13:27:21
This commit is contained in:
Wolfgang Sourdeau
2012-04-20 13:27:21 +00:00
parent 9ea333e6b6
commit fa4d2d3141
12 changed files with 135 additions and 65 deletions
+13
View File
@@ -1,5 +1,18 @@
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
if (NodeList) {
var _each = NodeList.prototype.forEach;
if (!_each) {
_each = function NodeList_each(iterator, context) {
for (var i = 0, length = this.length >>> 0; i < length; i++) {
if (i in this) iterator.call(context, this[i], i, this);
}
};
}
NodeList.prototype._each = _each;
Object.extend(NodeList.prototype, Enumerable);
}
/* custom extensions to the DOM api */
Element.addMethods({
addInterface: function(element, objectInterface) {