Skip to content

Commit

Permalink
changed .count() to .length
Browse files Browse the repository at this point in the history
  • Loading branch information
weepy committed Apr 2, 2012
1 parent 5c11253 commit c1e0c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions o_O.js
Expand Up @@ -820,14 +820,14 @@ proto.at = function(index) {
}

proto.insert = function(o, index) {
if(index < 0 || index > this.count()) return false
if(index < 0 || index > this.length) return false
this.items.splice(index, 0, o)
_add(this, o, index)
return o
}

proto.removeAt = function(index) {
if(index < 0 || index >= this.count()) return false
if(index < 0 || index >= this.length) return false
var o = this.items[index]
this.items.splice(index, 1)
_remove(this, o, index)
Expand Down

0 comments on commit c1e0c1b

Please sign in to comment.