Skip to content

Commit

Permalink
Style JSON serialisation doesn't include subject selector $ #817
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkfranz committed Feb 3, 2015
1 parent 5cbfc36 commit 8631d47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,10 @@
var queryToString = function(query){
var str = '';

if( query.subject === query ){
str += '$';
}

var group = clean(query.group);
str += group.substring(0, group.length - 1);

Expand Down

0 comments on commit 8631d47

Please sign in to comment.