Commit b69df09a authored by Avi's avatar Avi

Saving some old attempts of method chaining prior to rehauling again

parent bb13756f
......@@ -17,9 +17,14 @@ const load_contents_promise = (file, cancellable = null)=>{
};
const head = async(filename)=>{
let file = Gio.file_new_for_commandline_arg(filename);
file.load_contents_promise = function(){
return load_contents_promise(file);
let f = Gio.file_new_for_commandline_arg(filename);
// file.load_contents_promise = ()=>{
// return load_contents_promise(file);
// };
const file={
load_contents_promise(){
return load_contents_promise(f);
}
}
let content_formatted;
try {
......
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