This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LazyCollection extends Backbone.Collection | |
indexQuerystring: 'index' | |
index: 1 | |
lastLength: 0 | |
fetch: (options) -> | |
options or= {} | |
if options.reset | |
@index = 1 | |
@lastLength = 0 | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static Pattern sessionParser = Pattern.compile("\u0000([^:]*):([^\u0000]*)\u0000"); | |
static final String TS_KEY = "___TS"; | |
private Scope.Session parseSession(String sessionCookieValue) throws UnsupportedEncodingException | |
{ | |
Scope.Session session = new Scope.Session(); | |
if (sessionCookieValue != null && !sessionCookieValue.trim().equals("")) | |
{ | |
String sign = sessionCookieValue.substring(0, sessionCookieValue.indexOf("-")); |