hyperjson.js : used split instead of filter... oops
This commit is contained in:
parent
f98fda7604
commit
475ca9bea8
@ -84,9 +84,10 @@ define([], function () {
|
|||||||
/* TODO this can be done with RegExps alone, and it will be faster
|
/* TODO this can be done with RegExps alone, and it will be faster
|
||||||
but this works and is a little less error prone, albeit slower
|
but this works and is a little less error prone, albeit slower
|
||||||
come back and speed it up when it comes time to optimize */
|
come back and speed it up when it comes time to optimize */
|
||||||
|
|
||||||
sel = sel + attributes.class
|
sel = sel + attributes.class
|
||||||
.split(/\s+/)
|
.split(/\s+/)
|
||||||
.split(isTruthy)
|
.filter(isTruthy)
|
||||||
.map(prependDot)
|
.map(prependDot)
|
||||||
.join('');
|
.join('');
|
||||||
delete attributes.class;
|
delete attributes.class;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user