Method code for $foundation.all_edit_types()

[Turn on line numbering]
var i, l, t;

l = [];
for i in (.ancestors()) {
    if (type((| (t = i.get_edit_types()) |)) == 'list)
        l = union(l, i.get_edit_types());
}
return l;

["// Created 26-Mar-1995 as a part of ColdCore, see: @help Credit"]

the Cold Dark