Commit bfe42a06 authored by Jérome Perrin's avatar Jérome Perrin

typo

who want to -> who wants to
parent d7ebc782
......@@ -122,8 +122,8 @@
.declareAcquiredMethod("aq_post", "jio_post")
.declareAcquiredMethod("aq_putAttachment", "jio_putAttachment")
.declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash")
.declareAcquiredMethod("whoWantToDisplayThisDocument",
"whoWantToDisplayThisDocument")
.declareAcquiredMethod("whoWantsToDisplayThisDocument",
"whoWantsToDisplayThisDocument")
/////////////////////////////////////////////////////////////////
// declared methods
......@@ -139,7 +139,7 @@
]);
})
.push(function (result) {
return gadget.whoWantToDisplayThisDocument(result.id);
return gadget.whoWantsToDisplayThisDocument(result.id);
})
.push(function (url) {
return gadget.pleaseRedirectMyHash(url);
......
......@@ -21,8 +21,8 @@
/////////////////////////////////////////////////////////////////
.declareAcquiredMethod("aq_allDocs", "jio_allDocs")
.declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash")
.declareAcquiredMethod("whoWantToDisplayThisDocument",
"whoWantToDisplayThisDocument")
.declareAcquiredMethod("whoWantsToDisplayThisDocument",
"whoWantsToDisplayThisDocument")
/////////////////////////////////////////////////////////////////
// declared methods
......@@ -37,7 +37,7 @@
for (i = 0; i < document_list.data.total_rows; i += 1) {
doc = document_list.data.rows[i];
result_list.push(RSVP.all([
gadget.whoWantToDisplayThisDocument(doc.id),
gadget.whoWantsToDisplayThisDocument(doc.id),
doc.value.title,
doc.value.modified
]));
......@@ -48,7 +48,7 @@
// Create new doc if nothing exists
if (document_list.length === 0) {
return gadget
.whoWantToDisplayThisDocument(
.whoWantsToDisplayThisDocument(
undefined,
"view_fast_input"
)
......
......@@ -70,7 +70,7 @@
});
})
.push(function () {
return gadget.whoWantToDisplayThisDocument(gadget.props.jio_key);
return gadget.whoWantsToDisplayThisDocument(gadget.props.jio_key);
})
.push(function (url) {
return gadget.pleaseRedirectMyHash(url);
......@@ -95,7 +95,7 @@
});
})
.push(function () {
return gadget.whoWantToDisplayHome();
return gadget.whoWantsToDisplayHome();
})
.push(function (url) {
return gadget.pleaseRedirectMyHash(url);
......@@ -114,10 +114,10 @@
.declareAcquiredMethod("aq_get", "jio_get")
.declareAcquiredMethod("aq_ajax", "jio_ajax")
.declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash")
.declareAcquiredMethod("whoWantToDisplayThisDocument",
"whoWantToDisplayThisDocument")
.declareAcquiredMethod("whoWantToDisplayHome",
"whoWantToDisplayHome")
.declareAcquiredMethod("whoWantsToDisplayThisDocument",
"whoWantsToDisplayThisDocument")
.declareAcquiredMethod("whoWantsToDisplayHome",
"whoWantsToDisplayHome")
/////////////////////////////////////////////////////////////////
// declared methods
......
......@@ -20,8 +20,8 @@
// Acquired methods
/////////////////////////////////////////////////////////////////
.declareAcquiredMethod("aq_getAttachment", "jio_getAttachment")
.declareAcquiredMethod("whoWantToDisplayThisResult",
"whoWantToDisplayThisResult")
.declareAcquiredMethod("whoWantsToDisplayThisResult",
"whoWantsToDisplayThisResult")
/////////////////////////////////////////////////////////////////
// declared methods
......@@ -47,7 +47,7 @@
i;
for (i = 0; i < document_list.length; i += 1) {
result_list.push(RSVP.all([
gadget.whoWantToDisplayThisResult(gadget.props.jio_key, i),
gadget.whoWantsToDisplayThisResult(gadget.props.jio_key, i),
document_list[i].score,
document_list[i].key
]));
......
......@@ -87,7 +87,7 @@
});
})
.push(function () {
return gadget.whoWantToDisplayThisDocument(
return gadget.whoWantsToDisplayThisDocument(
gadget.props.jio_key,
"view_result"
);
......@@ -143,8 +143,8 @@
.declareAcquiredMethod("aq_ajax", "jio_ajax")
.declareAcquiredMethod("aq_getConfigurationDict", "getConfigurationDict")
.declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash")
.declareAcquiredMethod("whoWantToDisplayThisDocument",
"whoWantToDisplayThisDocument")
.declareAcquiredMethod("whoWantsToDisplayThisDocument",
"whoWantsToDisplayThisDocument")
/////////////////////////////////////////////////////////////////
// declared methods
......
......@@ -340,11 +340,11 @@
});
})
.allowPublicAcquisition("whoWantToDisplayHome", function () {
.allowPublicAcquisition("whoWantsToDisplayHome", function () {
// Hey, I want to display some URL
return this.aq_pleasePublishMyState({});
})
.allowPublicAcquisition("whoWantToDisplayThisDocument",
.allowPublicAcquisition("whoWantsToDisplayThisDocument",
function (param_list) {
// Hey, I want to display some jIO document
var kw = {
......@@ -355,7 +355,7 @@
}
return this.aq_pleasePublishMyState(kw);
})
.allowPublicAcquisition("whoWantToDisplayThisResult",
.allowPublicAcquisition("whoWantsToDisplayThisResult",
function (param_list) {
// Hey, I want to display some jIO document
return this.aq_pleasePublishMyState({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment