1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-20 02:18:20 +01:00
This commit is contained in:
Xuan Sang LE 2018-08-28 15:07:46 +02:00
parent 0817dd6079
commit 1f57e18fc7
2 changed files with 4 additions and 5 deletions

View File

@ -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)

View File

@ -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);