griffin.yo
griffin.yo copied to clipboard
An easy SPA library written in TypeScript
The util method: ViewRenderer.prototype.getIfUnlessValue = function (name, data, directives) { if (directives === void 0) { directives = {}; } // control statements for arrays can't be anything else than...
data-unless toggles correctly, but the item is still being parsed and therefore remove innerHTML. Abort other processing for elements which contains the `data-unless` attribute.
![image](https://cloud.githubusercontent.com/assets/818579/26411290/d9e26cb2-40a5-11e7-952c-c398ad516dde.png)
Doesn't seem to work as designed.
Change ``` javascript selector.match("[\s\.,\[]+").length === 0 ``` to ``` javascript selector.match(/[#\s\.,\[]+/) === null ```
childData && childData.length > 0
Introduce DomUtils.setText which uses the defined one