Sha256: 57dd596c3ce3ab6adb5113ffd8ac5d4cd50abb487cec663a51ed45f2b055e70a

Contents?: true

Size: 394 Bytes

Versions: 13

Compression:

Stored size: 394 Bytes

Contents

module Druid
  module Javascript

    module YUI
      #
      # return the number of pending ajax requests
      #
      def self.pending_requests
         "var inProgress=0
         for(var i=0; i < YAHOO.util.Connect._transaction_id; i++) {
           if(YAHOO.util.Connect.isCallInProgress(i))
             inProgress++;
         }
         return inProgress;"
      end
    end

  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
druid-s-1.0.0 lib/druid/javascript/yui.rb
druid-ts-1.2.6 lib/druid/javascript/yui.rb
druid-ts-1.2.5 lib/druid/javascript/yui.rb
druid-ts-1.2.4 lib/druid/javascript/yui.rb
druid-ts-1.2.3 lib/druid/javascript/yui.rb
druid-ts-1.2.2 lib/druid/javascript/yui.rb
druid-ts-1.2.1 lib/druid/javascript/yui.rb
druid-ts-1.2.0 lib/druid/javascript/yui.rb
druid-ts-1.1.8 lib/druid/javascript/yui.rb
druid-ts-1.1.7 lib/druid/javascript/yui.rb
druid-ts-1.1.6 lib/druid/javascript/yui.rb
druid-ts-1.1.5 lib/druid/javascript/yui.rb
druid-ts-1.1.4 lib/druid/javascript/yui.rb