lib/page-object/javascript/yui.rb in page-object-2.2.6 vs lib/page-object/javascript/yui.rb in page-object-2.3.0
- old
+ new
@@ -1,19 +1,19 @@
-module PageObject
- 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
+module PageObject
+ 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
\ No newline at end of file