Bug TypeError: c is undefined, line:4491 fixed.
This commit is contained in:
@@ -34,8 +34,7 @@ mindplot.model.LinkModel = new Class({
|
|||||||
this.setAttribute('url', fixedUrl);
|
this.setAttribute('url', fixedUrl);
|
||||||
|
|
||||||
var type = fixedUrl.contains('mailto:') ? 'mail' : 'url';
|
var type = fixedUrl.contains('mailto:') ? 'mail' : 'url';
|
||||||
this.setAttribute('type', type);
|
this.setAttribute('urlType', type);
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_fixUrl:function (url) {
|
_fixUrl:function (url) {
|
||||||
@@ -44,6 +43,11 @@ mindplot.model.LinkModel = new Class({
|
|||||||
result = "http://" + result;
|
result = "http://" + result;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
},
|
||||||
|
|
||||||
|
setUrlType:function (urlType) {
|
||||||
|
$assert(urlType, 'urlType can not be null');
|
||||||
|
this.setAttribute('urlType', urlType);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user