File size: 552 Bytes
b3787d8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | (function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['templating/Coder'], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
}
}(this, function (Coder) {
'use strict';
var bindingsCoder = {
tagName: 'bd',
code: function (nodeContext, data) {
data.bind = data.dataset.bind || data.name;
return data;
}
};
if (Coder) {
Coder.addCoder(bindingsCoder);
}
return bindingsCoder;
})); |