Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

cosmetic changes :sparkles: #3

Merged
merged 1 commit into from

2 participants

@tenten0213
Owner

No description provided.

@uggds uggds merged commit 75e378a into mouyan
@uggds
Owner

:sparkles:

@tenten0213 tenten0213 deleted the jshint branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 16, 2014
  1. @tenten0213

    cosmetic changes :sparkles:

    tenten0213 authored
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 6 deletions.
  1. +4 −4 www/js/controllers.js
  2. +2 −2 www/js/services.js
View
8 www/js/controllers.js
@@ -11,8 +11,8 @@ angular.module('pecologApp.controllers', ['ionic','pecologApp.services'])
.controller('MapController', function($scope, $ionicLoading, $ionicActionSheet, shops) {
var initialize = function() {
- var markerDataList = new Array();
- var comments = ["うまい", "まずい"]
+ var markerDataList = [];
+ var comments = ['うまい', 'まずい'];
_(shops._objs).each(function(shop) {
markerDataList.push({ z: shop._coord[1], x: shop._coord[0], content: shop.name, comment: comments.shift() });
});
@@ -57,7 +57,7 @@ angular.module('pecologApp.controllers', ['ionic','pecologApp.services'])
$scope.img = img;
//$scope.marker = marker;
//$scope.infowindow = infowindow;
- }
+ };
google.maps.event.addDomListener(window, 'load', initialize);
var attachMessage = function(marker, infowindow, ionicActionSheet) {
@@ -74,7 +74,7 @@ angular.module('pecologApp.controllers', ['ionic','pecologApp.services'])
}
});
});
- }
+ };
$scope.centerOnMe = function() {
if(!$scope.map) {
View
4 www/js/services.js
@@ -10,7 +10,7 @@ angular.module('pecologApp.services', [])
all: function () {
return menuItems;
}
- }
+ };
})
.factory('ShopService', function ($resource, $q) {
@@ -19,5 +19,5 @@ angular.module('pecologApp.services', [])
all: function () {
return $resource(SHOP_BASE_URL + '-', {get: {method: 'GET'}}).get();
}
- }
+ };
});
Something went wrong with that request. Please try again.