forked from 0x2620/oxjs
rather use ''.slice than ''.substr
This commit is contained in:
parent
f990f3b857
commit
1608664bb6
20 changed files with 69 additions and 71 deletions
|
|
@ -190,9 +190,9 @@ Ox.InsertHTMLDialog = function(options, self) {
|
|||
);
|
||||
self.options.callback({
|
||||
position: self.options.start + value.length,
|
||||
value: self.options.value.substr(0, self.options.start)
|
||||
value: self.options.value.slice(0, self.options.start)
|
||||
+ value
|
||||
+ self.options.value.substr(self.options.end)
|
||||
+ self.options.value.slice(self.options.end)
|
||||
});
|
||||
that.close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue