Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
Use debug lib
Browse files Browse the repository at this point in the history
Issue #27
* Convert logging to debug
  • Loading branch information
natoverse committed Oct 19, 2015
1 parent 70872b0 commit a92921f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 6 additions & 3 deletions src/js/common/util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
'use strict';

import debugFactory from "debug";
const debug = debugFactory('app:common:util');

(function (global) {

var util = {};
Expand Down Expand Up @@ -138,14 +141,14 @@

util.geospatial = {

//TODO: this needs to actually hit test the passed points
hitTestPoints: function (points, center, radius) {
console.log('hit testing points', points.length);
console.log('location', center);
debug('hit testing points', points.length);
debug('location', center);
var output = {};
points.forEach(function (point) {
output[point.id] = point;
});
console.log(Object.keys(output).length + ' results');
return output;
}

Expand Down
2 changes: 0 additions & 2 deletions src/js/components/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ let DashboardComponent = React.createClass({
},

handleLocationChange(e) {
console.log('location changed');
console.log(e);
this.setState({
state: e.state,
location: e.location
Expand Down

0 comments on commit a92921f

Please sign in to comment.