code: function fetchScope(element) {
              var scope;
              while (!scope && element.length) {
                scope = element.data('_scope');
                if (!scope) {
                  element = element.parent();
                }
              }
              return scope;
            }
docs: Fetch scope from element or parents
  @param  {object} element Source element
  @return {object}         Scope, or null if not found