Permalink
Browse files

Oops, class is a reserved word; changing to className as suggested by @…

  • Loading branch information...
beaugunderson committed Apr 6, 2012
1 parent b456348 commit 96c54b62d26b061d1abfe70d1f1c222aaba46c26
Showing with 4 additions and 4 deletions.
  1. +4 −4 ipv6.js
View
@@ -360,8 +360,8 @@ v6.Address.prototype.link = function(options) {
options = {};
}
- if (options.class === undefined) {
- options.class = '';
+ if (options.className === undefined) {
+ options.className = '';
}
if (options.prefix === undefined) {
@@ -378,8 +378,8 @@ v6.Address.prototype.link = function(options) {
formFunction = this.v4inv6;
}
- if (options.class) {
- return sprintf('<a href="%1$s%2$s" class="%3$s">%2$s</a>', options.prefix, formFunction.call(this), options.class);
+ if (options.className) {
+ return sprintf('<a href="%1$s%2$s" class="%3$s">%2$s</a>', options.prefix, formFunction.call(this), options.className);
} else {
return sprintf('<a href="%1$s%2$s">%2$s</a>', options.prefix, formFunction.call(this));
}

0 comments on commit 96c54b6

Please sign in to comment.