mirror of
https://github.com/atom/atom.git
synced 2026-02-13 08:04:56 -05:00
Update signature of calls to TextBuffer::transact
This commit is contained in:
@@ -1096,10 +1096,10 @@ class TextEditor extends Model
|
||||
# abort the transaction, call {::abortTransaction} to terminate the function's
|
||||
# execution and revert any changes performed up to the abortion.
|
||||
#
|
||||
# * `groupingInterval` (optional) This is the sames as the `groupingInterval`
|
||||
# parameter in {::beginTransaction}
|
||||
# * `fn` A {Function} to call inside the transaction.
|
||||
# * `groupingInterval` This is the sames as the `groupingInterval` parameter
|
||||
# in {::beginTransaction}
|
||||
transact: (fn, groupingInterval) -> @buffer.transact(fn, groupingInterval)
|
||||
transact: (groupingInterval, fn) -> @buffer.transact(groupingInterval, fn)
|
||||
|
||||
# Extended: Start an open-ended transaction.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user