feature(storage) get: callback(data) -> callback(error, data)

This commit is contained in:
coderaiser 2014-06-03 07:23:40 -04:00
parent ce0ce29d6d
commit 243e1f12bf
7 changed files with 11 additions and 12 deletions

View file

@ -52,7 +52,7 @@ var CloudCmd, Util, DOM, CloudFunc, Github, cb;
GitHub.autorize = function(callback, code) {
Storage.get('token', function(token) {
Storage.get('token', function(error, token) {
var isContain,
apiURL = CloudFunc.apiURL,
URL = '//' + window.location.host + '/auth/github';