eslint helps

This commit is contained in:
Connor Turland 2017-03-16 11:12:36 -04:00
parent 806c276616
commit 43ffbbca82

View file

@ -1,15 +1,9 @@
/* global $ */ /* global $ */
import React from 'react'
import ReactDOM from 'react-dom' // TODO ensure this isn't a double import
import Active from '../Active' import Active from '../Active'
import DataModel from '../DataModel' import DataModel from '../DataModel'
import GlobalUI from '../GlobalUI' import GlobalUI, { ReactApp } from '../GlobalUI'
import { ReactApp } from '../GlobalUI'
import Realtime from '../Realtime'
import Loading from '../Loading' import Loading from '../Loading'
import Maps from '../../components/Maps'
const ExploreMaps = { const ExploreMaps = {
pending: false, pending: false,
@ -24,19 +18,19 @@ const ExploreMaps = {
switch (capitalize) { switch (capitalize) {
case 'Active': case 'Active':
document.title = 'Explore Active Maps | Metamaps' document.title = 'Explore Active Maps | Metamaps'
ReactApp.mobileTitle='Recently Active' ReactApp.mobileTitle = 'Recently Active'
break break
case 'Featured': case 'Featured':
document.title = 'Explore Featured Maps | Metamaps' document.title = 'Explore Featured Maps | Metamaps'
ReactApp.mobileTitle='Featured Maps' ReactApp.mobileTitle = 'Featured Maps'
break break
case 'Starred': case 'Starred':
document.title = 'Starred Maps | Metamaps' document.title = 'Starred Maps | Metamaps'
ReactApp.mobileTitle='Starred Maps' ReactApp.mobileTitle = 'Starred Maps'
break break
case 'Shared': case 'Shared':
document.title = 'Shared Maps | Metamaps' document.title = 'Shared Maps | Metamaps'
ReactApp.mobileTitle='Shared With Me' ReactApp.mobileTitle = 'Shared With Me'
break break
case 'Mine': case 'Mine':
document.title = 'My Maps | Metamaps' document.title = 'My Maps | Metamaps'
@ -46,7 +40,7 @@ const ExploreMaps = {
} else if (generalSection === '') { } else if (generalSection === '') {
self.setCollection(DataModel.Maps.Active) self.setCollection(DataModel.Maps.Active)
document.title = 'Explore Active Maps | Metamaps' document.title = 'Explore Active Maps | Metamaps'
ReactApp.mobileTitle='Recently Active' ReactApp.mobileTitle = 'Recently Active'
} }
if (id) { if (id) {
@ -69,7 +63,6 @@ const ExploreMaps = {
}, },
setCollection: function(collection) { setCollection: function(collection) {
var self = ExploreMaps var self = ExploreMaps
if (self.collection) { if (self.collection) {
self.collection.off('add', self.render) self.collection.off('add', self.render)
self.collection.off('successOnFetch', self.handleSuccess) self.collection.off('successOnFetch', self.handleSuccess)
@ -81,7 +74,6 @@ const ExploreMaps = {
self.collection.on('errorOnFetch', self.handleError) self.collection.on('errorOnFetch', self.handleError)
}, },
render: function() { render: function() {
var self = ExploreMaps
ReactApp.resize() ReactApp.resize()
ReactApp.render() ReactApp.render()
Loading.hide() Loading.hide()