Permalink
Browse files

Merge pull request #354 from renaudleo/master

Correct misleading instructions in README
  • Loading branch information...
2 parents 9e0be09 + f7aac74 commit 8db66e2f1509ae673c7a0c7094b7f4005d5cbb39 @madrobby committed Jan 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -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
});
```

0 comments on commit 8db66e2

Please sign in to comment.