Browse Source

Added comments to refactor service.

pull/156/head
Simon Eisenmann 11 years ago
parent
commit
0f51026f35
  1. 5
      static/js/services/roompin.js

5
static/js/services/roompin.js

@ -24,7 +24,10 @@ define([ @@ -24,7 +24,10 @@ define([
], function() {
return ["$window", "$q", function($window, $q) {
var pinCache = {};
// XXX(longsleep): This service needs to get rid of all window.alert and prompt calls.
var roompin = {
get: function(roomName) {
var cachedPIN = pinCache[roomName];
@ -55,6 +58,8 @@ define([ @@ -55,6 +58,8 @@ define([
return deferred.promise;
}
};
return roompin;
}];
});

Loading…
Cancel
Save