Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

There is no KD.singleton() in framework #33

Merged
merged 2 commits into from
May 30, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/tooltip/tooltip.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = class KDTooltip extends KDView
if @getOptions().animate then @setClass 'out' else @hide()

@addListeners()
KD.singleton("windowController").on "ScrollHappened", @bound "hide"
KD.singletons.windowController.on "ScrollHappened", @bound "hide"

@once "viewAppended", =>
o = @getOptions()
Expand Down Expand Up @@ -64,7 +64,7 @@ module.exports = class KDTooltip extends KDView
return unless @visible
super
@getDomElement().remove()
KD.singleton("windowController").removeLayer this
KD.singletons.windowController.removeLayer this
@visible = no

update:(o = @getOptions(), view = null)->
Expand Down Expand Up @@ -126,7 +126,7 @@ module.exports = class KDTooltip extends KDView

# converts NESW-Values to topbottomleftright and retains them in @getOptions
@appendToDomBody()
KD.singleton("windowController").addLayer this
KD.singletons.windowController.addLayer this
o = @translateCompassDirections o if o.gravity
o.gravity = null

Expand Down