Overload methods and setters (although not in WebKit).
@see http://code.google.com/p/chromium/issues/detail?id=13175
@param {object} proto
@param {String} name
@param {function} combo
@param {Element} root
323401
function(proto, name, combo, root) {
		if (this._ismethod(name)) {
			this._domethod(proto, name, combo);
		} else {
			if (gui.Client.isGecko) {
				this._dogeckoaccessor(proto, name, combo, root);
			} else if (gui.Client.isExplorer) {
				this._doieaccessor(proto, name, combo);
			} else {
				// WebKit/Safari/Blink relies on the {gui.DOMObserver}
			}
		}
	}
34901
function initKarmaParallelizer(root, karma, shardIndexInfoMap) {
  var idParamExtractor = /(\?|&)id=(\d+)(&|$)/;
  var matches = idParamExtractor.exec(parent.location.search);
  var id = (matches && matches[2]) || null;

  if (
    !id ||
    !shardIndexInfoMap.hasOwnProperty(id) ||
    !shardIndexInfoMap[id].shouldShard
  ) {
    /* eslint-disable-next-line no-console */
    console.warn(
      'Skipping sharding. Could not find karma-parallel initialization data.'
    );
    return;
  }

  var shardIndexInfo = shardIndexInfoMap[id];
  var strategy = overrideSuiteStategy(getSpecSuiteStrategy(shardIndexInfo));
  var fakeContextStatus = createFakeTestContext(root, strategy);

  var origStart = karma.start;
  karma.start = function() {
    fakeContextStatus.beforeStartup();
    origStart.call(this);
  };
}
992999
function (name, methods) {
        //this.callSuper(methods);
        this.name = name;
        this.methods = {};

        if (methods) {
            var n;
            //Add methods
            n = methods.length;
            while (n > 0) {
                n -= 1;
                this.methods[methods[n]] = true;
            }
        }
    }
361692
function(name) {
       if ($caller !== null) {
            for(var $s = $caller.boundTo.$parent; $s !== null; $s = $s.$parent) {
                var m = $s.prototype[name];
                if (typeof m === 'function') {
                    return m;
                }
            }
            return null;
        }
        throw new Error("$super is called outside of class context");
    }
158322
protected void initParameters(Element root) {

        m_parameters.clear();
        for (Element paramElement : root.elements(APPINFO_PARAM)) {
            String name = paramElement.attributeValue(APPINFO_ATTR_NAME);
            String value = paramElement.getText();
            m_parameters.put(name, value);
        }

    }
814686
function(options) {
      inputEx.CombineField.superclass.setOptions.call(this, options);

      // Overwrite options
      this.options.className = options.className ? options.className : 'inputEx-CombineField';
      
      // Added options
      this.options.separators = options.separators;
   }
372777
function (p) {
            var src = ariaWidgetsFormDropDownListTrait.prototype;
            for (var key in src) {
                if (src.hasOwnProperty(key) && !p.hasOwnProperty(key)) {
                    // copy methods which are not already on this object (this avoids copying $classpath and
                    // $destructor)
                    p[key] = src[key];
                }
            }
        }
20454
private void addCommonAttrMappings(JSONObject root, JSONObject node) throws JSONException {
    for (String property : GRANITE_COMMON_ATTR_PROPERTIES) {
      String[] mapping = { "${./" + property + "}", "${\'./granite:" + property + "\'}" };
      mapProperty(root, node, "granite:" + property, mapping);
    }

    if (root.has(NN_GRANITE_DATA)) {
      // the root has granite:data defined, copy it before applying data-* properties
      node.put(NN_GRANITE_DATA, root.get(NN_GRANITE_DATA));
    }

    // map data-* prefixed properties to granite:data child
    for (Map.Entry<String, Object> entry : getProperties(root).entrySet()) {
      if (!StringUtils.startsWith(entry.getKey(), DATA_PREFIX)) {
        continue;
      }

      // add the granite:data child if necessary
      JSONObject dataNode;
      if (!node.has(NN_GRANITE_DATA)) {
        dataNode = new JSONObject();
        node.put(NN_GRANITE_DATA, dataNode);
      }
      else {
        dataNode = node.getJSONObject(NN_GRANITE_DATA);
      }

      // set up the property mapping
      String nameWithoutPrefix = entry.getKey().substring(DATA_PREFIX.length());
      mapProperty(root, dataNode, nameWithoutPrefix, "${./" + entry.getKey() + "}");
    }
  }
1350276
function triggerEvent(name, element) {

  var eventType;

  switch (name) {
    case "click":
    case "mousedown":
    case "mouseup":
      eventType = "MouseEvents";
    break;
    case "focus":
    case "change":
    case "blur":
    case "select":
      eventType = "HTMLEvents";
    break;
    default:
      throw new Error('Unsupported `"' + name + '"`event');
    break;
  }
  var event = document.createEvent(eventType);
  event.initEvent(name, name !== "change" , true);
  element.dispatchEvent(event, true);
}
1240562
function Templater(options) {
  if (options == null) {
    options = { allowEval: true };
  }
  this.options = options;
  if (options.stack && Array.isArray(options.stack)) {
    this.stack = options.stack;
  }
  else if (typeof options.stack === 'string') {
    this.stack = [ options.stack ];
  }
  else {
    this.stack = [];
  }
  this.nodes = [];
}
576956
function setProperty(target, options) {
	if (defineProperty && options.name === '__proto__') {
		defineProperty(target, options.name, {
			enumerable: true,
			configurable: true,
			value: options.newValue,
			writable: true
		});
	} else {
		target[options.name] = options.newValue;
	}
}
1066370
def StartElement(self,name,attributes):
		''
		# Instantiate an Element object
		element = Element(name.encode(),attributes)
		
		# Push element onto the stack and make it a child of parent
		if len(self.nodeStack) > 0:
			parent = self.nodeStack[-1]
			parent.AddChild(element)
		else:
			self.root = element
		self.nodeStack.append(element)
348595
function Class(name,options) {

  this.name = name || "";
  this.mixins = [];
  this.methods = {};
  this.properties = {};

  if (lib.type.isObject(options)) {
    var keys = Object.keys(options);
    var length = keys.length;
    for (var i = 0; i < length; i++) {
      var key = keys[i];
      var value = options[key];
      if (key === "constructor") {
        this.addConstructor(value);
      } else if (key === "inherits") {
        this.inherit(value);
      } else if (key === "mixins") {
        this.mixin(value);
      } else if (lib.type.isFunction(value) && lib.inherits.superOf(value,Property)) {
        this.addProperty(key,value);
      } else {
        this.addMethod(key,value);
      }
    }
  }

}
777189
@Override
    public void initialise(String root) {
        functionCalls.clear();
        variables.clear();
        initCreator(root);
    }
338027
function(options) {
    // Add option to create caller.
    var option = {enabled: true};
    var name = this.getFieldValue('NAME');
    option.text = Blockly.Msg.PROCEDURES_CREATE_DO.replace('%1', name);
    var xmlMutation = goog.dom.createDom('mutation');
    xmlMutation.setAttribute('name', name);
    for (var i = 0; i < this.arguments_.length; i++) {
      var xmlArg = goog.dom.createDom('arg');
      xmlArg.setAttribute('name', this.arguments_[i]);
      xmlMutation.appendChild(xmlArg);
    }
    var xmlBlock = goog.dom.createDom('block', null, xmlMutation);
    xmlBlock.setAttribute('type', this.callType_);
    option.callback = Blockly.ContextMenu.callbackFactory(this, xmlBlock);
    options.push(option);

    // Add options to create getters for each parameter.
    if (!this.isCollapsed()) {
      for (var i = 0; i < this.arguments_.length; i++) {
        var option = {enabled: true};
        var name = this.arguments_[i];
        option.text = Blockly.Msg.VARIABLES_SET_CREATE_GET.replace('%1', name);
        var xmlField = goog.dom.createDom('field', null, name);
        xmlField.setAttribute('name', 'VAR');
        var xmlBlock = goog.dom.createDom('block', null, xmlField);
        xmlBlock.setAttribute('type', 'variables_get');
        option.callback = Blockly.ContextMenu.callbackFactory(this, xmlBlock);
        options.push(option);
      }
    }
  }
759028
function _set_common(stack_name, thing){
	var ret = null;
	if( stack_name == 'css_libs' ||
	    stack_name == 'js_libs' ||
	    stack_name == 'js_vars' ){
	    _add_permanently_to(stack_name, thing);
	    ret = thing;
	}
	//console.log('added ' + thing.length + ' to ' + stack_name);

	return ret;
    }
1108823
function (name) {
        if (JOII.Config.callables.indexOf(name) !== -1) {
            return;
        }

        JOII.Config.callables.push(name);
    }