Progress commit
This commit is contained in:
@@ -63,7 +63,7 @@ class SvgElementClass
|
||||
else
|
||||
results.text(window.compiledJS)
|
||||
results.removeClass 'error'
|
||||
window.evaluator = new SnapDsl(window.compiledJS, target: @target)
|
||||
window.evaluator = new SnapDsl(window.compiledJS, target: @target, width: @box_width.val(), height: @box_height.val())
|
||||
evaluator.result()
|
||||
$('.minibutton.run').removeClass 'error'
|
||||
catch {location, message}
|
||||
@@ -76,8 +76,8 @@ class SnapDsl
|
||||
@js_code = code
|
||||
@options = options
|
||||
@t = $(options.target)
|
||||
@width = @t.width()
|
||||
@height = @t.height()
|
||||
@width = options.width
|
||||
@height = options.height
|
||||
$(options.target).html('')
|
||||
result: ->
|
||||
@snap = Snap(@options.target)
|
||||
|
||||
Reference in New Issue
Block a user