MCPcopy Create free account
hub / github.com/binux/qiandao / getText

Function getText

web/static/components/angularjs/angular.js:2721–2727  ·  view source on GitHub ↗
(element, value)

Source from the content-addressed store, hash-verified

2719 return getText;
2720
2721 function getText(element, value) {
2722 var textProp = NODE_TYPE_TEXT_PROPERTY[element.nodeType];
2723 if (isUndefined(value)) {
2724 return textProp ? element[textProp] : '';
2725 }
2726 element[textProp] = value;
2727 }
2728 })(),
2729
2730 val: function(element, value) {

Callers

nothing calls this directly

Calls 1

isUndefinedFunction · 0.70

Tested by

no test coverage detected