Don't create the opacity buffer for images that lack a mask.
Remove unneeded srcOffset arguments from createRgbBuffer.
Close the secondary toolbar when an action is only performed once
Refactors getTextContent return value
Don't create the RGB buffer for images that don't need resizing.
Minor fixes for the jsdocs and removing unused members.
Merge pull request #4139 from nnethercote/RGBA

Write color and opacity values directly to the final RGBA array when possible, so as to avoid allocating unnecessary memory.
Merge pull request #4144 from yurydelendik/api-doc

Misc fixes for the API docs
Merge pull request #4140 from timvandermeij/close-secondary-toolbar

Close the secondary toolbar when an action is performed once
Merge branch 'master' of git://github.com/mozilla/pdf.js into sidebar-resizer