MCPcopy Create free account
hub / github.com/breck7/scroll / attr

Function attr

external/.datatables.js:2741–2751  ·  view source on GitHub ↗
(str, td)

Source from the content-addressed store, hash-verified

2739 d = d !== undefined ? d : objectRead ? {} : []
2740
2741 var attr = function (str, td) {
2742 if (typeof str === "string") {
2743 var idx = str.indexOf("@")
2744
2745 if (idx !== -1) {
2746 var attr = str.substring(idx + 1)
2747 var setter = _fnSetObjectDataFn(str)
2748 setter(d, td.getAttribute(attr))
2749 }
2750 }
2751 }
2752
2753 // Read data from a cell and store into the data object
2754 var cellProcess = function (cell) {

Callers 1

cellProcessFunction · 0.85

Calls 2

indexOfMethod · 0.80
getAttributeMethod · 0.80

Tested by

no test coverage detected