mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Reset Clipboard in AtomEnvironment::reset
This commit is contained in:
@@ -247,6 +247,8 @@ class AtomEnvironment extends Model
|
||||
|
||||
@menu.clear()
|
||||
|
||||
@clipboard.reset()
|
||||
|
||||
###
|
||||
Section: Event Subscription
|
||||
###
|
||||
|
||||
@@ -14,8 +14,12 @@ clipboard = require './safe-clipboard'
|
||||
# ```
|
||||
module.exports =
|
||||
class Clipboard
|
||||
metadata: null
|
||||
signatureForMetadata: null
|
||||
constructor: ->
|
||||
@reset()
|
||||
|
||||
reset: ->
|
||||
@metadata = null
|
||||
@signatureForMetadata = null
|
||||
|
||||
# Creates an `md5` hash of some text.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user