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

Commit

Permalink
all console alerts off except device width
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeTobin committed Oct 8, 2015
1 parent dda3f31 commit b3d1947
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions KHE/components/ScheduleList.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions KHE/components/UpdateList.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ class UpdateList extends Component {

componentWillReceiveProps(props) {

console.log('componentWillReceiveProps UpdateList');
//console.log('componentWillReceiveProps UpdateList');
this.fetchData();
}

fetchData() {
console.log('fetch Update');
//console.log('fetch Update');
fetch(MESSEGES_URL)
.then((response) => response.json())
.then((responseData) => {
Expand All @@ -110,7 +110,7 @@ class UpdateList extends Component {
dataSource: this.state.dataSource.cloneWithRows(_ds.messages),
isLoading: false
});
console.log(_ds);
//console.log(_ds);
})
.done();
}
Expand Down
20 changes: 10 additions & 10 deletions KHE/components/dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ class Dash extends Component {

componentWillReceiveProps(props) {

console.log('componentWillReceiveProps Dash');
//console.log('componentWillReceiveProps Dash');
this.fetchData();

}

fetchData() {
console.log('fetch Dash');
//console.log('fetch Dash');
fetch(MESSEGES_URL)
.then((response) => response.json())
.then((responseData) => {
Expand All @@ -81,17 +81,17 @@ class Dash extends Component {
}

fetchNextEvent() {
console.log("in fetchNextEvent");
//console.log("in fetchNextEvent");
//console.log(this.state.dataSourceSchedule);
//var TodaysDate = moment().date();
//var TodaysDate = 10;
console.log("today");
//console.log("today");
//prod time string
var todaysDateISO = moment().format();
//dev time string
//var todaysDateISO = '2015-10-10T14:00:00-04:00';
//console.log("date");
console.log(todaysDateISO);
//console.log(todaysDateISO);
var ScheduleObject = [];
ScheduleObject = this.state.dataSourceSchedule.events;
//console.log(ScheduleObject);
Expand All @@ -115,16 +115,16 @@ class Dash extends Component {

if(moment(ScheduleObject[i].start).isAfter(todaysDateISO)){
nextEventIndex = i;
console.log("final index");
console.log(nextEventIndex);
//console.log("final index");
//console.log(nextEventIndex);
break;
}
}
}
if (typeof ScheduleObject != 'undefined'){
EventNext = ScheduleObject[nextEventIndex];
console.log("NExt Event");
console.log(EventNext);
//console.log("NExt Event");
//console.log(EventNext);
}
var nextevetTitle = "Loading";
var nexteventTime = ""
Expand All @@ -133,7 +133,7 @@ class Dash extends Component {

var eventString = "Loading...";
eventString = nextevetTitle +" at " + nexteventTime;
console.log(eventString);
//console.log(eventString);
return eventString;
}

Expand Down

0 comments on commit b3d1947

Please sign in to comment.