Skip to content

Commit

Permalink
#10 Making JSHint happy
Browse files Browse the repository at this point in the history
…I know;
  • Loading branch information
simison committed Oct 9, 2014
1 parent 6e37fe5 commit 5071184
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions public/modules/core/services/languages.client.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

angular.module('core').factory('Languages', [
function() {
var service = {}
var service = {};

service.get = function (type) {
if (type == 'array'){
var langs_arr = []
if (type === 'array'){
var langs_arr = [];
for (var code in window.languages) {
langs_arr.push({key: code, name: window.languages[code]})
langs_arr.push({key: code, name: window.languages[code]});
}
return langs_arr;
} else if (type == 'object'){
} else if (type === 'object'){
return window.languages;
}
}
};

return service;
}
Expand Down

0 comments on commit 5071184

Please sign in to comment.