public/rails_ext/rails_ext.js in rails-ext-0.2.7 vs public/rails_ext/rails_ext.js in rails-ext-0.2.8
- old
+ new
@@ -87,14 +87,14 @@
}
return id;
},
first: function(){
- return $((this.size() > 0) ? this[0] : this)
+ return (this.size() > 0) ? $(this[0]) : null
},
last: function(){
- return $((this.size() > 0) ? this[this.size() - 1] : this)
+ return (this.size() > 0) ? $(this[this.size() - 1]) : null
},
blank: function(){
return this.size() < 1
}
\ No newline at end of file