Skip to content

Commit

Permalink
Delint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Aug 16, 2013
1 parent f105ef6 commit ae5433a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/collection.js
Expand Up @@ -480,7 +480,7 @@ Collection.prototype.namespace = function() {
* @return {String|Collection} The value of attribute or `this` for chaining.
* @api public
*/
Collection.prototype.attr =
Collection.prototype.attr =
Collection.prototype.attrs = function(name, val) {
if (val || typeof name == 'object') {
var attrs = {};
Expand Down Expand Up @@ -534,7 +534,7 @@ Collection.prototype.attrNS = function(name, ns, val) {
* @return {String|Collection} The text content or `this` for chaining.
* @api public
*/
Collection.prototype.t =
Collection.prototype.t =
Collection.prototype.text = function(val) {
if (val) {
return this.empty().forEach(function(n) {
Expand Down Expand Up @@ -587,7 +587,7 @@ Collection.prototype.c = function(name, attrs, text) {
return (text ? n : el);
});
return wrap(arr);
}
};

/**
* Create a DOM element.
Expand Down Expand Up @@ -619,8 +619,8 @@ Collection.prototype._build = function(name, ns, attrs) {
} else {
el = doc.createElement(name);
}
for (var name in attrs) {
el.setAttribute(name, attrs[name]);
for (var key in attrs) {
el.setAttribute(key, attrs[key]);
}
return el;
};
Expand Down

0 comments on commit ae5433a

Please sign in to comment.