Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #354 from renaudleo/master

Correct misleading instructions in README
  • Loading branch information...
commit 8db66e2f1509ae673c7a0c7094b7f4005d5cbb39 2 parents 9e0be09 + f7aac74
@madrobby authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -31,7 +31,7 @@ In short, Zepto is expected to work in every modern browser except Internet Expl
Basic call with CSS selector:
``` js
-$('p>span').html('yoho').css('color:red');
+$('p>span').html('yoho').css({color: 'red'});
```
Instead of a selector, a DOM Element, or a list of nodes can be passed in.
@@ -42,7 +42,7 @@ The $ function takes an optional context argument, which can be a DOM Element or
$('span', $('p')) // -> find all <span> elements in <p> elements
$('p').bind('click', function(){
- $('span', this).css('color:red'); // affects "span" children/grandchildren
+ $('span', this).css({color: 'red'}); // affects "span" children/grandchildren
});
```
Please sign in to comment.
Something went wrong with that request. Please try again.