function actionDecorator(action) {
		return function() {
			var df = new $.Deferred();
			var bracketsEditor = EditorManager.getFocusedEditor();
			if (!bracketsEditor) {
				return df.reject();
			}

			editor.setup(bracketsEditor);
			bracketsEditor.document.batchOperation(function() {
				runAction(action, df);
			});

			return df.resolve().promise();
		};
	}
Emmet action decorator: creates a command function
for CodeMirror and executes Emmet action as single
undo command
@param  {Object} action Action to perform
@return {Function}