Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "ss-utils", | ||
"title": "ServiceStack JavaScript Utils", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "ServiceStack's JavaScript library providing a number of convenience utilities in developing javascript web apps. Integrates with ServiceStack's Server features including Error Handling, Validation and Server Events", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/ServiceStack/ss-utils", |
@@ -399,2 +399,4 @@ ;(function (root, f) { | ||
$.ss.eventSourceStop = false; | ||
$.ss.eventOptions = {}; | ||
$.ss.eventReceivers = {}; | ||
@@ -458,2 +460,3 @@ $.ss.eventChannels = []; | ||
$.ss.reconnectServerEvents = function (opt) { | ||
if ($.ss.eventSourceStop) return; | ||
opt = opt || {}; | ||
@@ -481,3 +484,3 @@ var hold = $.ss.eventSource; | ||
$.ss.eventSource = this[0]; | ||
opt = opt || {}; | ||
$.ss.eventOptions = opt = opt || {}; | ||
if (opt.handlers) { | ||
@@ -524,2 +527,3 @@ $.extend($.ss.handlers, opt.handlers); | ||
stopFn.apply($.ss.eventSource); | ||
$.ss.reconnectServerEvents({ errorArgs: { error:'CLOSED' } }); | ||
return; | ||
@@ -526,0 +530,0 @@ } |
29879
702