almost all the methods on amd-utils receives the target as first argument, hasParam and getParam receives the URL as second argument (optional) and goes against the convention.
I also think that it shouldn't use window.location.href by default, user should explicitly pass the URL, too much magic is a bad thing and behavior will differ on node.js.
almost all the methods on amd-utils receives the target as first argument,
hasParam
andgetParam
receives the URL as second argument (optional) and goes against the convention.I also think that it shouldn't use
window.location.href
by default, user should explicitly pass the URL, too much magic is a bad thing and behavior will differ on node.js.