Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
frontend-auth
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
134d45a2
authored
2016-08-05 18:54:45 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Sync wrapping is not ready to be done at this level yet, removing this
code.
1 parent
4eabaeee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
src/scripts/Auth.js
src/scripts/Auth.js
View file @
134d45a
...
...
@@ -32,20 +32,6 @@ define(function(require) {
return
deferred
;
}
var
authSync
=
function
authSync
(
auth
,
origSync
,
method
,
model
,
options
)
{
var
args
=
_
.
toArray
(
arguments
);
args
.
shift
();
args
.
shift
();
var
url
=
options
.
url
||
_
.
result
(
model
,
'url'
);
if
(
url
)
{
var
sessionId
=
auth
.
get
(
'sessionId'
);
if
(
sessionId
)
{
options
.
url
=
url
+
(
url
.
indexOf
(
'?'
)
==
-
1
?
'?'
:
'&'
)
+
'sessionId='
+
sessionId
;
}
}
return
origSync
.
apply
(
this
,
args
);
};
var
FacebookProvider
=
Backbone
.
Model
.
extend
({
initialize
:
function
(
data
,
globalOptions
)
{
// early facebook javascript load
...
...
@@ -266,12 +252,6 @@ define(function(require) {
};
bindMethods
(
this
,
'login'
,
'logout'
);
},
wrapSync
:
function
(
origSync
)
{
var
auth
=
this
;
return
function
()
{
return
authSync
.
apply
(
this
,
[
auth
,
origSync
].
concat
(
_
.
toArray
(
arguments
)));
};
},
},
{
FacebookProvider
:
FacebookProvider
,
FormProvider
:
FormProvider
,
...
...
Please
register
or
sign in
to post a comment