Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html>
<head>
<title>Minimal GoJS Sample</title>
<!-- Copyright 1998-2014 by Northwoods Software Corporation. -->
<link href="goSamples.css" rel="stylesheet" type="text/css"/>
<script src="http://www.gojs.net/latest/release/go.js"></script>
<script id="code">
window.DiagramManager;
@d3chapma
d3chapma / gist:6390235
Last active December 22, 2015 00:38 — forked from bruth/gist:2865951
Removed the assumption about get requests. Added a check if the client is online or not. If not online, just queue the request because we know the request will fail.
# Reference Backbone ajax function
_ajax = Backbone.ajax
requestQueue = []
requestPending = false
sendRequest = (options, promise, trigger=true) ->
options = _.clone options
if trigger
requestPending = true