Sha256: 43c9ae0a3ba064d21c010a4f16bfc6854ae0421d53e75c19a99bcb9efe0ae87d
Contents?: true
Size: 602 Bytes
Versions: 2
Compression:
Stored size: 602 Bytes
Contents
return unless ws? # https://stackoverflow.com/questions/2238030/trigger-document-ready-so-ajax-code-i-cant-modify-is-executed#answer-8125920 window.readyList = [] # Store a reference to the original ready method. window.originalReadyMethod = $.fn.ready # Override jQuery.fn.ready $.fn.ready = -> if arguments.length && arguments.length > 0 && typeof arguments[0] == 'function' window.readyList.push(arguments[0]) # Execute the original method. window.originalReadyMethod.apply(this, arguments) # Used to trigger all ready events $.triggerReady = -> $(window.readyList).each(-> this())
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flammarion_rails-0.3.4 | app/assets/javascripts/flammarion_rails/boot.coffee |
flammarion_rails-0.3.3 | app/assets/javascripts/flammarion_rails/boot.coffee |