Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed bug in attrs() with no args. Expected properties object to be r…

…eturned, instead Donatello object was returned.
  • Loading branch information...
commit 23ee831ecc315a456284dc4f686e935cb5183b39 1 parent 379f8df
@dnewcome authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  donatello.js
View
2  donatello.js
@@ -213,7 +213,7 @@ Donatello.prototype.node = function() {
* TODO: this could be lots simpler.
*/
Donatello.prototype.attr = function( obj ) {
- if( obj == 'undefined' ) return this.properties;
+ if( obj == undefined ) return this.properties;
Donatello.merge( obj, this.properties );
var mapping = this.attrMap;
Please sign in to comment.
Something went wrong with that request. Please try again.