Skip to content

Commit

Permalink
documented the request.isFirst sugar-flag
Browse files Browse the repository at this point in the history
  • Loading branch information
maranomynet committed Jan 11, 2012
1 parent 7b55f28 commit a45e2a3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions 1.1/jquery.virtualbrowser-1.1.js
Expand Up @@ -63,10 +63,11 @@
// lastRequest: // the *current* request object
// }
request // Object: {
// url: // String the URL that was just loaded (Modifiable by handler)
// elm: // undefined or jQuery collection containing the link (or form element) that was clicked/submitted
// btn: // undefined or Object whose presense indicates that form-submit was triggered by a named button or input[type=image]
// Contains an `elm` property (jQuery collection with the button element), and also `X` & `Y` (int) click coordinates for image buttons.
// isFirst: // Boolean sugar flag indicating if there is such a thing as vbdata.lastRequest
// url: // String the URL that was just loaded (Modifiable by handler)
// elm: // undefined or jQuery collection containing the link (or form element) that was clicked/submitted
// btn: // undefined or Object whose presense indicates that form-submit was triggered by a named button or input[type=image]
// Contains an `elm` property (jQuery collection with the button element), and also `X` & `Y` (int) click coordinates for image buttons.
// }
// Cancellable via e.preventDefault()
// cancel caching of the request by explicitly setting `request.noCache = true;`
Expand Down Expand Up @@ -96,6 +97,7 @@
// lastRequest: // the *current* request object
// }
request // Object: {
// isFirst: // Boolean sugar flag indicating if there is such a thing as vbdata.lastRequest
// result: // String: The $.ajax()/$.get() callback responseText parameter
// resultDOM: // Element(s)/Collection that will get inserted into the virtualBrowser body.
// ...will be `undefined` unless `cfg.selector` is non-empty, or an `VBerror` handler has injected a custom resultDOM.
Expand Down

0 comments on commit a45e2a3

Please sign in to comment.