Sentence:  We were forbidden to swing on the gates , lest they sag on their hinges in a poor-white-trash way , but we could stand on them , when they were latched , rest our chins on the top , and stare and stare , <WSD>committing</WSD> to memory , quite unintentionally , all the details that lay before our eyes . 
Meaning of the word marked with <WSD> tags:  give entirely to a specific person, activity, or cause