mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-12-26 01:18:21 +01:00
fix
This commit is contained in:
parent
0817dd6079
commit
1f57e18fc7
@ -1,12 +1,12 @@
|
||||
class MarkOn extends window.classes.BaseObject
|
||||
constructor: (@id) ->
|
||||
constructor: () ->
|
||||
super "MarkOn"
|
||||
|
||||
init: () ->
|
||||
me = @
|
||||
@ready()
|
||||
.then () ->
|
||||
me.editor = new SimpleMDE { element: $(me.id)[0] }
|
||||
me.editor = new SimpleMDE { element: $("#editor")[0] }
|
||||
.catch (m, s) ->
|
||||
console.error(m, s)
|
||||
|
||||
|
@ -117,8 +117,7 @@
|
||||
MarkOn = (function(superClass) {
|
||||
extend(MarkOn, superClass);
|
||||
|
||||
function MarkOn(id) {
|
||||
this.id = id;
|
||||
function MarkOn() {
|
||||
MarkOn.__super__.constructor.call(this, "MarkOn");
|
||||
}
|
||||
|
||||
@ -127,7 +126,7 @@
|
||||
me = this;
|
||||
return this.ready().then(function() {
|
||||
return me.editor = new SimpleMDE({
|
||||
element: $(me.id)[0]
|
||||
element: $("#editor")[0]
|
||||
});
|
||||
})["catch"](function(m, s) {
|
||||
return console.error(m, s);
|
||||
|
Loading…
Reference in New Issue
Block a user