Skip to content

Commit

Permalink
doc accuracy, faux test number
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Lind committed Dec 16, 2014
1 parent 4bc5e67 commit f634859
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ groucho.config = {
To write your own features, grab browsing history and work with it. You'll need to use a little structure to define the condition, in this case: the name of the tracking group...
```javascript
$.each(groucho.getActivities(), function (key, record) {
$.each(groucho.getActivities({'group' : 'browsing'}), function (key, record) {
someComparison(record.property, record.url);
});
```
Expand Down Expand Up @@ -306,10 +306,8 @@ You can work directly with tracking activites and create your own smart function
function recentVideos(timeframe, category) {
var query = {
'group' : 'watch',
'conditions' : [
'property' : 'type',
'values' : category
]
'property' : 'type',
'values' : [category]
},
myActivities = groucho.getActivities(query),
now = new Date().getTime(),
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ if (groucho.favoriteTerms.hasOwnProperty(taxonomy)) {

Use page view activity tracking to dig through history and alter UX.
```javascript
var history = groucho.getActivities(),
var history = groucho.getActivities({'group' : 'browsing'}),
links = $('a.promoted'),
count = 0;

Expand Down
2 changes: 1 addition & 1 deletion test/groucho_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
});

//@todo Confirm granular activity request work.
test('Activity retrieval', function() {
test('Activity retrieval', 0, function() {

/*
Expand Down

0 comments on commit f634859

Please sign in to comment.