Skip to content

Commit

Permalink
fix(stringToStyles) : method not chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
liqueurdetoile committed Feb 20, 2018
1 parent f2da80b commit 51ae10b
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 32 deletions.
2 changes: 1 addition & 1 deletion dist/objectarray.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions docs/html/ObjectArray.html
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ <h4 class="name" id="~camelize"><span class="type-signature">(inner) </span>came

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line432">line 432</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line433">line 433</a>
</li></ul></dd>


Expand Down Expand Up @@ -529,7 +529,7 @@ <h4 class="name" id="~dashize"><span class="type-signature">(inner) </span>dashi

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line448">line 448</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line449">line 449</a>
</li></ul></dd>


Expand Down Expand Up @@ -1279,7 +1279,7 @@ <h4 class="name" id="~formUrlEncode"><span class="type-signature">(inner) </span

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line414">line 414</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line415">line 415</a>
</li></ul></dd>


Expand Down Expand Up @@ -3413,7 +3413,7 @@ <h4 class="name" id="~urlEncode"><span class="type-signature">(inner) </span>url

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line393">line 393</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line394">line 394</a>
</li></ul></dd>


Expand Down Expand Up @@ -3769,7 +3769,7 @@ <h5>Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Feb 20 2018 12:10:07 GMT+0100 (Paris, Madrid) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Feb 20 2018 13:42:05 GMT+0100 (Paris, Madrid) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
4 changes: 2 additions & 2 deletions docs/html/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h4 class="name" id="dottedKey">dottedKey</h4>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line469">line 469</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line470">line 470</a>
</li></ul></dd>


Expand Down Expand Up @@ -219,7 +219,7 @@ <h5>Example</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Feb 20 2018 12:10:07 GMT+0100 (Paris, Madrid) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Feb 20 2018 13:42:05 GMT+0100 (Paris, Madrid) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ <h2>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Feb 20 2018 12:10:07 GMT+0100 (Paris, Madrid) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Feb 20 2018 13:42:05 GMT+0100 (Paris, Madrid) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
3 changes: 2 additions & 1 deletion docs/html/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ <h1 class="page-title">index.js</h1>
}
}
}.bind(this));
return this;
}

/**
Expand Down Expand Up @@ -539,7 +540,7 @@ <h1 class="page-title">index.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Feb 20 2018 12:10:07 GMT+0100 (Paris, Madrid) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Feb 20 2018 13:42:05 GMT+0100 (Paris, Madrid) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
41 changes: 19 additions & 22 deletions tastes/tests/objectarray.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,31 +373,28 @@ describe('ObjectArray Class', function () {
it('should import a style type string', function () {
let i = new ObjectArray();

i.stringToStyles('position:absolute;display:flex;padding-left:1em');

i.data.should.eql({
position: 'absolute',
display: 'flex',
paddingLeft: '1em'
});
i.stringToStyles('position:absolute;display:flex;padding-left:1em')
.data.should.eql({
position: 'absolute',
display: 'flex',
paddingLeft: '1em'
});

i.empty();

i.stringToStyles('position:absolute;display:flex;padding-left:1em', 'dat.path.to.subkey');

i.dataset('dat.path.to.subkey').should.eql({
position: 'absolute',
display: 'flex',
paddingLeft: '1em'
});

i.stringToStyles('position:absolute;display:flex;padding-left:1em;', 'dat.path.to.subkey');

i.dataset('dat.path.to.subkey').should.eql({
position: 'absolute',
display: 'flex',
paddingLeft: '1em'
});
i.stringToStyles('position:absolute;display:flex;padding-left:1em', 'dat.path.to.subkey')
.dataset('dat.path.to.subkey').should.eql({
position: 'absolute',
display: 'flex',
paddingLeft: '1em'
});

i.stringToStyles('position:absolute;display:flex;padding-left:1em;', 'dat.path.to.subkey')
.dataset('dat.path.to.subkey').should.eql({
position: 'absolute',
display: 'flex',
paddingLeft: '1em'
});
});

it('should throw an exception if bad string provided', function () {
Expand Down

0 comments on commit 51ae10b

Please sign in to comment.