Removed border code. Doesn't seem to be used/needed anymore. Causes shapes and DOM elements to be created repeatedly.
This commit is contained in:
parent
b4ed2bac5b
commit
e6e66ece42
@ -87,11 +87,11 @@ class @WhiteboardPaperModel
|
||||
@raphaelObj.renderfix()
|
||||
|
||||
# initializing border around slide to cover up areas which shouldnt show
|
||||
@borders = {}
|
||||
for border in ['left', 'right', 'top', 'bottom']
|
||||
@borders[border] = @raphaelObj.rect(0, 0, 0, 0)
|
||||
@borders[border].attr("fill", "#ababab")
|
||||
@borders[border].attr( {stroke:"#ababab"} )
|
||||
# @borders = {}
|
||||
# for border in ['left', 'right', 'top', 'bottom']
|
||||
# @borders[border] = @raphaelObj.rect(0, 0, 0, 0)
|
||||
# @borders[border].attr("fill", "#ababab")
|
||||
# @borders[border].attr( {stroke:"#ababab"} )
|
||||
|
||||
@raphaelObj
|
||||
|
||||
@ -187,7 +187,7 @@ class @WhiteboardPaperModel
|
||||
for url of @slides
|
||||
if @slides.hasOwnProperty(url)
|
||||
@raphaelObj.getById(@slides[url]?.getId())?.remove()
|
||||
#@trigger('paper:image:removed', @slides[url].getId()) # TODO do we need this?
|
||||
@trigger('paper:image:removed', @slides[url].getId()) # Removes the previous image preventing images from being redrawn over each other repeatedly
|
||||
@slides = {}
|
||||
@currentSlide = null
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user