The isPageLoadComplete() method gets the page loaded status.
Note: This module is not intended to be overridden.
status = isPageLoadComplete()
|
Boolean |
Page loaded status indication: true = Page loading is complete. false = Page loading is not complete. |
applyContext: function(context) {
if (this.isPageLoadComplete()) {
var search = context.get("search");
var fieldsIntention = search.getIntentionReference("setfields");
if (fieldsIntention) {
this.selectedFields = [];
var fields = fieldsIntention["arg"];
for (var i=0; i<fields.length; i++) {
var field = fields[i];
if (field.charAt(0)!=="_") {
this.selectedFields.push(field);
}
}
this.setSelectedFieldList(this.selectedFields);
this.pushContextToChildren();
return true;
}
}
},