Browse Source

Merge pull request #229 from fancycode/jshint_errors

Fix some jshint errors
pull/241/head
Simon Eisenmann 10 years ago
parent
commit
97fd691773
  1. 4
      static/js/main.js
  2. 2
      static/js/services/alertify.js
  3. 4
      static/js/services/geolocation.js

4
static/js/main.js

@ -181,8 +181,8 @@ if (Object.create) { @@ -181,8 +181,8 @@ if (Object.create) {
custom: {
families: ["FontAwesome"],
testStrings: {
"FontAwesome": '\uf004\uf005'
}
"FontAwesome": '\uf004\uf005'
}
},
active: function() {
console.log("Web fonts loaded.");

2
static/js/services/alertify.js

@ -108,7 +108,7 @@ define(["angular"], function(angular) { @@ -108,7 +108,7 @@ define(["angular"], function(angular) {
if (!conf ||
conf && !conf.type ||
conf && !conf.baseType) {
throw Error("Custom template not configured correctly.");
throw new Error("Custom template not configured correctly.");
}
var templateUrl = '/dialogs/' + conf.type + '.html';
if (conf.template) {

4
static/js/services/geolocation.js

@ -29,8 +29,8 @@ define(['underscore', 'modernizr'], function(_, Modernizr) { @@ -29,8 +29,8 @@ define(['underscore', 'modernizr'], function(_, Modernizr) {
var defaults = {
enableHighAccuracy: true,
timeout: 5000,
maximumAge: 0
timeout: 5000,
maximumAge: 0
};
return {

Loading…
Cancel
Save