Skip to content

Commit

Permalink
added the optimized version of Meteor.user()
Browse files Browse the repository at this point in the history
  • Loading branch information
Fen747 committed Dec 19, 2016
1 parent f044900 commit 3b82031
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
<li>
Use it like this :
<ul>
<li>Meteor.user() // return the whole current user doc</li>
<li>Meteor.user( "aUserIdString" ) // return the whole specified user doc</li>
<li>Meteor.user( [ 'field1', 'field2', ... ] ) // return the filtered current user doc</li>
<li>Meteor.user( "aUserIdString", [ 'field1', 'field2', ... ] ) // return the filtered specified user doc</li>
<li><b>Meteor.user()</b> // return the whole current user doc</li>
<li><b>Meteor.user( "aUserIdString" )</b> // return the whole specified user doc</li>
<li><b>Meteor.user( [ 'field1', 'field2', ... ] )</b> // return the filtered current user doc</li>
<li><b>Meteor.user( "aUserIdString", [ 'field1', 'field2', ... ] )</b> // return the filtered specified user doc</li>
</ul>
</li>
</ul>
Expand Down
8 changes: 4 additions & 4 deletions imports/ui/pages/home/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ <h3>Meteor.user</h3>
<li>
Use it like this :
<ul>
<li>Meteor.user() // return the whole current user doc</li>
<li>Meteor.user( "aUserIdString" ) // return the whole specified user doc</li>
<li>Meteor.user( [ 'field1', 'field2', ... ] ) // return the filtered current user doc</li>
<li>Meteor.user( "aUserIdString", [ 'field1', 'field2', ... ] ) // return the filtered specified user doc</li>
<li><span class="bold">Meteor.user()</span> // return the whole current user doc</li>
<li><span class="bold">Meteor.user( "aUserIdString" )</span> // return the whole specified user doc</li>
<li><span class="bold">Meteor.user( [ 'field1', 'field2', ... ] )</span> // return the filtered current user doc</li>
<li><span class="bold">Meteor.user( "aUserIdString", [ 'field1', 'field2', ... ] )</span> // return the filtered specified user doc</li>
</ul>
</li>
</ul>
Expand Down

0 comments on commit 3b82031

Please sign in to comment.