Skip to content

Commit

Permalink
v0.7.18
Browse files Browse the repository at this point in the history
  • Loading branch information
also committed Jun 15, 2016
1 parent 0b30fa8 commit 3ef194d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion js/offline.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
Offline.trigger = function(event) {
var ctx, handler, j, len, ref, ref1, results;
if (handlers[event] != null) {
ref = handlers[event];
ref = handlers[event].slice(0);
results = [];
for (j = 0, len = ref.length; j < len; j++) {
ref1 = ref[j], ctx = ref1[0], handler = ref1[1];
Expand Down
4 changes: 2 additions & 2 deletions offline.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! offline-js 0.7.17 */
/*! offline-js 0.7.18 */
(function() {
var Offline, checkXHR, defaultOptions, extendNative, grab, handlers, init;
extendNative = function(to, from) {
Expand Down Expand Up @@ -70,7 +70,7 @@
}, Offline.trigger = function(event) {
var ctx, handler, j, len, ref, ref1, results;
if (null != handlers[event]) {
for (ref = handlers[event], results = [], j = 0, len = ref.length; len > j; j++) ref1 = ref[j],
for (ref = handlers[event].slice(0), results = [], j = 0, len = ref.length; len > j; j++) ref1 = ref[j],
ctx = ref1[0], handler = ref1[1], results.push(handler.call(ctx));
return results;
}
Expand Down
Loading

0 comments on commit 3ef194d

Please sign in to comment.