Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8452 from mrodalgaard/doc-pane-flex-scale
Browse files Browse the repository at this point in the history
📝 fix pane flex scale doc
  • Loading branch information
kevinsawicki committed Aug 19, 2015
2 parents 55a0be9 + 7131c39 commit 2ce9184
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/pane.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,22 @@ class Pane extends Model

# Public: Invoke the given callback when the pane resize
#
# the callback will be invoked when pane's flexScale property changes
# The callback will be invoked when pane's flexScale property changes.
# Use {::getFlexScale} to get the current value.
#
# * `callback` {Function} to be called when the pane is resized
#
# Returns a {Disposable} on which '.dispose()' can be called to unsubscribe.
onDidChangeFlexScale: (callback) ->
@emitter.on 'did-change-flex-scale', callback

# Public: Invoke the given callback with all current and future items.
# Public: Invoke the given callback with the current and future values of
# {::getFlexScale}.
#
# * `callback` {Function} to be called with current and future items.
# * `item` An item that is present in {::getItems} at the time of
# subscription or that is added at some later time.
# * `callback` {Function} to be called with the current and future values of
# the {::getFlexScale} property.
# * `flexScale` {Number} representing the panes `flex-grow`; ability for a
# flex item to grow if necessary.
#
# Returns a {Disposable} on which `.dispose()` can be called to unsubscribe.
observeFlexScale: (callback) ->
Expand Down

0 comments on commit 2ce9184

Please sign in to comment.