January 2019
FastClick is breaking mobile sites on Firefox Android. There are currently a number of issues related to this issue.
so I was wondering what was attach
, the source code is giving the answer.
FastClick.attach = function(layer, options) {
return new FastClick(layer, options);
};
In the index page.
FastClick.attach(document.body);
http://js.dhresource.com/mobile_v2/common/headfoot/v1/headfoot.js?v=1547532659381
c.attach = function(a, d) {
return new c(a, d)
};
'function' === typeof define && 'object' === typeof define.amd && define.amd ? define('tools/fastclick', [], function() {
return c
}) : 'undefined' !== typeof module && module.exports ? (module.exports = c.attach, module.exports.FastClick = c) : window.FastClick = c
FastClick.attach(document.body);
FastClick.attach(document.body);
FastClick.attach=function(a){return new FastClick(a)};
e(function () {
'undefined' != typeof FastClick && 'undefined' != typeof t.body && FastClick.attach(t.body)
});
FastClick.attach(document.body),
e(function () {
typeof FastClick != 'undefined' && typeof n.body != 'undefined' && FastClick.attach(n.body)
});
e.attach = function (t, i) {
return new e(t, i)
},
'function' == typeof define && 'object' == typeof define.amd && define.amd ? define(function () {
return e
}) : 'undefined' != typeof module && module.exports ? (module.exports = e.attach, module.exports.FastClick = e) : window.FastClick = e
}(),
$(function() {
FastClick.attach(document.body);
});