Skip to content

Instantly share code, notes, and snippets.

@mkeen
Created February 2, 2010 18:34
Show Gist options
  • Save mkeen/292897 to your computer and use it in GitHub Desktop.
Save mkeen/292897 to your computer and use it in GitHub Desktop.
adopt: function (obj) {
if(typeof obj && obj.length != 'undefined') {
for(var i = 0; i < obj.length; i++) {
self.element.appendChild(obj[i]);
}
} else {
self.element.appendChild(obj);
}
return self.element;
},
adopt: function (obj) {
if(typeof obj && obj.length != 'undefined') {
for(var i = 0; i < obj.length; i++) {
self.element.appendChild(obj[i]);
}
} else {
self.element.appendChild(obj);
}
return self.element;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment