diff options
Diffstat (limited to 'src/elements/A.js')
-rw-r--r-- | src/elements/A.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/elements/A.js b/src/elements/A.js index 722deed..ef047a2 100644 --- a/src/elements/A.js +++ b/src/elements/A.js @@ -31,7 +31,9 @@ registerMethods({ linkTo: function (url) { var link = new A() - if (typeof url === 'function') { url.call(link, link) } else { + if (typeof url === 'function') { + url.call(link, link) + } else { link.to(url) } |