📝 Mention what testEditor simulates

This commit is contained in:
Kevin Sawicki
2013-11-21 14:33:58 -08:00
parent a9887b5007
commit 7d9d0c715c

View File

@@ -36,6 +36,8 @@ class MenuManager
includeSelector: (selector) ->
return true if document.body.webkitMatchesSelector(selector)
# Simulate an .editor element attached to a body element that has the same
# classes as the current body element.
unless @testEditor?
@testEditor = document.createElement('div')
@testEditor.classList.add('editor')