Sha256: e99521268dce651fd9e446d035b640eaeb3bdc90d876314995ff71b88e697866

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

##=require lanes/lib/namespace

Lanes.namespace('Remote')

Lanes.Remote.onDocumentReady = (fn) ->
    if document.readyState isnt 'loading'
        fn()
    else if document.addEventListener
        document.addEventListener 'DOMContentLoaded', fn
    else
        document.attachEvent 'onreadystatechange', ->
            fn() if document.readyState != 'loading'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lanes-0.7.0 client/lanes/remote/onDocumentReady.coffee