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
|
|
@ -355,7 +355,7 @@ Ox.load.Image = function(options, callback) {
|
|||
while (str.length < cap) {
|
||||
str += str.substr(4, len);
|
||||
}
|
||||
str = str.substr(0, Math.ceil(cap));
|
||||
str = str.slice(0, Math.ceil(cap));
|
||||
// Create an array of bit values
|
||||
bin = Ox.flatten(Ox.map(str.split(''), function(chr) {
|
||||
return Ox.range(8).map(function(i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue