Skip to content
Browse files

removed unnecessary code

  • Loading branch information...
1 parent 3723d24 commit 547dd756b0f3975c64bb66a47fcbf917c3294732 @fb55 fb55 committed Sep 17, 2011
Showing with 1 addition and 7 deletions.
  1. +1 −7 lib/nodepie.js
View
8 lib/nodepie.js
@@ -538,20 +538,14 @@ NodePie.prototype.getItem = function(i){
return this._items[i];
}
- if(!this.itemsElement){
- return false;
- }
-
if(Array.isArray(this.itemsElement)){
if(this.itemsElement.length > i){
this._items[i] = new NodePie.Item(this.itemsElement[i], this);
return this._items[i];
- }else{
- return false;
}
}
- if(typeof this.itemsElement === "object"){
+ else if(typeof this.itemsElement === "object"){
if(i === 0){
this._items[i] = new NodePie.Item(this.itemsElement, this);
return this._items[i];

0 comments on commit 547dd75

Please sign in to comment.
Something went wrong with that request. Please try again.