Skip to content
This repository was archived by the owner on Sep 8, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/browser/object-sync-client.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ console.trace or= ->
console.dir or= ->

if not Array.indexOf
Array.prototype.indexOf = (obj) ->
Array::indexOf = (obj) ->
for i in [0..@length]
if this[i] is obj
return i
Expand Down Expand Up @@ -239,4 +239,4 @@ class ObjectSync extends EventEmitter
fn.apply @, args
delete @_req_callbacks[req_id]

window.ObjectSync = ObjectSync
window.ObjectSync = ObjectSync