Skip to content

Commit

Permalink
bug fix with .fn
Browse files Browse the repository at this point in the history
  • Loading branch information
goatslacker committed May 5, 2011
1 parent 1954a71 commit ef6ce24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zepto.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ var Zepto = (function() {
});
},
hide: function(){
return this.css("display", "none")
return this.css("display", "none");
},
toggle: function(){
this.css("display") == "none" && this.show() || this.hide();
return this
return this;
},
prev: function(){ return $(this.pluck('previousElementSibling')) },
next: function(){ return $(this.pluck('nextElementSibling')) },
Expand Down Expand Up @@ -317,7 +317,7 @@ var Zepto = (function() {
}

adjacencyOperators.forEach(function(key, operator) {
$.fn[key] = function(html){
$Zepto.fn[key] = function(html){
if (typeof(html) != 'object')
html = fragment(html);

Expand Down

0 comments on commit ef6ce24

Please sign in to comment.