File tree Expand file tree Collapse file tree 6 files changed +43
-19
lines changed
Expand file tree Collapse file tree 6 files changed +43
-19
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,9 @@ var FieldView = View.extend({
9090 el : el ,
9191 parent : this ,
9292 collection : this . model . fields
93- } ) , { silent : true } ) ;
93+ } ) , {
94+ silent : true
95+ } ) ;
9496 this . listenTo ( this . fieldListView , 'change:refineQuery' , this . onRefineClause ) ;
9597 return this . fieldListView ;
9698 }
@@ -103,7 +105,9 @@ var FieldView = View.extend({
103105 el : el ,
104106 parent : this ,
105107 collection : this . model . arrayFields
106- } ) , { silent : true } ) ;
108+ } ) , {
109+ silent : true
110+ } ) ;
107111 this . listenTo ( this . arrayFieldListView , 'change:refineQuery' , this . onRefineClause ) ;
108112 return this . arrayFieldListView ;
109113 }
@@ -133,12 +137,16 @@ var FieldView = View.extend({
133137 var clauses = [ ] ;
134138 if ( this . fieldListView ) {
135139 this . fieldListView . refineQuery . clauses . each ( function ( clause ) {
136- if ( clause . valid ) clauses . push ( this . prefixClauseKey ( clause ) ) ;
140+ if ( clause . valid ) {
141+ clauses . push ( this . prefixClauseKey ( clause ) ) ;
142+ }
137143 } . bind ( this ) ) ;
138144 }
139145 if ( this . arrayFieldListView ) {
140146 this . arrayFieldListView . refineQuery . clauses . each ( function ( clause ) {
141- if ( clause . valid ) clauses . push ( this . prefixClauseKey ( clause ) ) ;
147+ if ( clause . valid ) {
148+ clauses . push ( this . prefixClauseKey ( clause ) ) ;
149+ }
142150 } . bind ( this ) ) ;
143151 }
144152 if ( this . refineClause . valid ) {
@@ -174,7 +182,9 @@ FieldListView = View.extend({
174182 refineQuery : {
175183 type : 'state' ,
176184 required : true ,
177- default : function ( ) { return new Query ( ) ; }
185+ default : function ( ) {
186+ return new Query ( ) ;
187+ }
178188 } ,
179189 queryContext : 'object'
180190 } ,
Original file line number Diff line number Diff line change @@ -59,7 +59,9 @@ var minicharts_d3fns_date = function(opts) {
5959 var barcodeBottom = Math . floor ( height - 10 ) ;
6060
6161 var barcodeX = d3 . time . scale ( )
62- . domain ( d3 . extent ( values , function ( d ) { return d . ts ; } ) )
62+ . domain ( d3 . extent ( values , function ( d ) {
63+ return d . ts ;
64+ } ) )
6365 . range ( [ 0 , width ] ) ;
6466
6567 var upperBarBottom = height / 2 - 20 ;
@@ -155,14 +157,14 @@ var minicharts_d3fns_date = function(opts) {
155157 raf ( function ( ) {
156158 many ( weekdays , opts . view , weekdayContainer ,
157159 width / ( upperRatio + 1 ) - upperMargin , upperBarBottom , {
158- bgbars : true ,
159- labels : {
160- 'text-anchor' : 'middle' ,
161- text : function ( d ) {
162- return d . label [ 0 ] ;
160+ bgbars : true ,
161+ labels : {
162+ 'text-anchor' : 'middle' ,
163+ text : function ( d ) {
164+ return d . label [ 0 ] ;
165+ }
163166 }
164- }
165- } ) ;
167+ } ) ;
166168 } ) ;
167169
168170 // calendar icon
Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ module.exports = AmpersandView.extend(QueryBuilderMixin, {
2424 } ,
2525 selectedValues : {
2626 type : 'array' ,
27- default : function ( ) { return [ ] ; }
27+ default : function ( ) {
28+ return [ ] ;
29+ }
2830 }
2931 } ,
3032 initialize : function ( opts ) {
Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ module.exports = {
3232 this . selectedValues = [ data ] ;
3333 }
3434 } else if ( _ . contains ( _ . pluck ( this . selectedValues , 'i' ) , data . i ) ) {
35- _ . remove ( this . selectedValues , function ( d ) { return d . i === data . i ; } ) ;
35+ _ . remove ( this . selectedValues , function ( d ) {
36+ return d . i === data . i ;
37+ } ) ;
3638 } else {
3739 this . selectedValues . push ( data ) ;
3840 }
@@ -67,7 +69,9 @@ module.exports = {
6769 $in : this . selectedValues . map ( function ( el ) {
6870 return el . d . value ;
6971 } )
70- } , { parse : true } ) ;
72+ } , {
73+ parse : true
74+ } ) ;
7175 }
7276 } ,
7377
@@ -129,7 +133,9 @@ module.exports = {
129133 upper += last . d . dx ;
130134 }
131135 if ( lower === upper ) {
132- this . refineValue = new LeafValue ( { content : lower } ) ;
136+ this . refineValue = new LeafValue ( {
137+ content : lower
138+ } ) ;
133139 } else {
134140 this . refineValue = new Range ( lower , upper , upperInclusive ) ;
135141 }
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ var EJSON = require('mongodb-extended-json');
33var Query = require ( 'mongodb-language-model' ) . Query ;
44// var debug = require('debug')('scout:models:query-options');
55
6- var DEFAULT_QUERY = new Query ( { } , { parse : true } ) ;
6+ var DEFAULT_QUERY = new Query ( { } , {
7+ parse : true
8+ } ) ;
79var DEFAULT_SORT = {
810 $natural : - 1
911} ;
Original file line number Diff line number Diff line change @@ -92,7 +92,9 @@ module.exports = AmpersandView.extend({
9292 } ,
9393 refineClicked : function ( ) {
9494 var queryStr = this . _cleanupInput ( this . queryByHook ( 'refine-input' ) . value ) ;
95- var queryObj = new Query ( EJSON . parse ( queryStr ) , { parse : true } ) ;
95+ var queryObj = new Query ( EJSON . parse ( queryStr ) , {
96+ parse : true
97+ } ) ;
9698 this . model . query = queryObj ;
9799 this . trigger ( 'submit' , this ) ;
98100 } ,
You can’t perform that action at this time.
0 commit comments