mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-29 15:15:37 +00:00
Monotone-Parent: f90d169fbc251326ea6c8a2f620e125a8a7b4168
Monotone-Revision: 7786f49f6724383b92e91ba7998b99cfb52ceec3 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-04-20T13:27:21
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user