Method code for $foundation.all_edit_types()

[Turn off line numbering]
  1: var i, l, t;
  2: 
  3: l = [];
  4: for i in (.ancestors()) {
  5:     if (type((| (t = i.get_edit_types()) |)) == 'list)
  6:         l = union(l, i.get_edit_types());
  7: }
  8: return l;

// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit

Tlon