mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Upgrade SpacePen again to default first view arg to {}
This commit is contained in:
parent
42f7d00fc1
commit
7e1a6cb5b4
3
vendor/space-pen.coffee
vendored
3
vendor/space-pen.coffee
vendored
@ -1,4 +1,4 @@
|
||||
# Modified from 98bd6cf5f62e596bb6bfcff8e2dcea07ce007de4 -- add require `jquery`
|
||||
# Modified from 13570cdf3a32bd9f484b2fd838f64e957716fca -- add require `jquery`
|
||||
$ = jQuery = require('jquery')
|
||||
|
||||
elements =
|
||||
@ -58,6 +58,7 @@ class View extends jQuery
|
||||
fragment
|
||||
|
||||
constructor: (args...) ->
|
||||
args[0] ?= {}
|
||||
[html, postProcessingSteps] = @constructor.buildHtml -> @content(args...)
|
||||
jQuery.fn.init.call(this, html)
|
||||
@constructor = jQuery # sadly, jQuery assumes this.constructor == jQuery in pushStack
|
||||
|
Loading…
Reference in New Issue
Block a user