Skip to content

Commit

Permalink
Merge pull request #1869 from dtritus/master
Browse files Browse the repository at this point in the history
fix(uiSref): use Object's toString instead of Window's toString
  • Loading branch information
nateabele committed Apr 9, 2015
2 parents 2fff59c + 2aa7f4d commit bc34b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stateDirectives.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function $StateRefDirective($state, $timeout) {
var ref = parseStateRef(attrs.uiSref, $state.current.name);
var params = null, url = null, base = stateContext(element) || $state.$current;
// SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.
var hrefKind = toString.call(element.prop('href')) === '[object SVGAnimatedString]' ?
var hrefKind = Object.prototype.toString.call(element.prop('href')) === '[object SVGAnimatedString]' ?
'xlink:href' : 'href';
var newHref = null, isAnchor = element.prop("tagName").toUpperCase() === "A";
var isForm = element[0].nodeName === "FORM";
Expand Down

0 comments on commit bc34b45

Please sign in to comment.