asual/jquery-address

address function not found at plugin load under chrome

bjj951 opened this issue · 2 comments

jQuery Address v1.6
jquery v1.8.3
Chrome Version 40.0.2214.115 m
loaded via requirejs

on line 137 within the _load function
$('a[rel*="address:"]').address();
The function address is sometimes undefined.
I seem to have successfully patched this by moving the function
$.fn.address = function (fn) { ...
above
$.address = (function () {...

Haven't seen this problem under firefox or IE

Moving $.address above seems to have fixed the issue

Point of interest: I periodically see this error on IE11 but it seems to be related to latency and order of execution issues. In particular, I never see it with caching disabled. I will try the above.