omi v1.1.7 - fix code-commenting in css

This commit is contained in:
dntzhang 2017-03-28 10:59:29 +08:00
parent 270ef31c5f
commit 562e7455d2
8 changed files with 28 additions and 19 deletions

View File

@ -66,10 +66,10 @@ $ npm install omi
## CDN
* [https://unpkg.com/omi@1.1.6/dist/omi.min.js](https://unpkg.com/omi@1.1.6/dist/omi.min.js)
* [https://unpkg.com/omi@1.1.6/dist/omi.js](https://unpkg.com/omi@1.1.6/dist/omi.js)
* [https://unpkg.com/omi@1.1.6/dist/omi.lite.min.js](https://unpkg.com/omi@1.1.6/dist/omi.lite.min.js)
* [https://unpkg.com/omi@1.1.6/dist/omi.lite.js](https://unpkg.com/omi@1.1.6/dist/omi.lite.js)
* [https://unpkg.com/omi@1.1.7/dist/omi.min.js](https://unpkg.com/omi@1.1.7/dist/omi.min.js)
* [https://unpkg.com/omi@1.1.7/dist/omi.js](https://unpkg.com/omi@1.1.7/dist/omi.js)
* [https://unpkg.com/omi@1.1.7/dist/omi.lite.min.js](https://unpkg.com/omi@1.1.7/dist/omi.lite.min.js)
* [https://unpkg.com/omi@1.1.7/dist/omi.lite.js](https://unpkg.com/omi@1.1.7/dist/omi.lite.js)
## 感谢
@ -130,10 +130,10 @@ if using 'omi.lite.js' (without [mustache.js](https://github.com/janl/mustache.j
## CDN
* [https://unpkg.com/omi@1.1.6/dist/omi.min.js](https://unpkg.com/omi@1.1.6/dist/omi.min.js)
* [https://unpkg.com/omi@1.1.6/dist/omi.js](https://unpkg.com/omi@1.1.6/dist/omi.js)
* [https://unpkg.com/omi@1.1.6/dist/omi.lite.min.js](https://unpkg.com/omi@1.1.6/dist/omi.lite.min.js)
* [https://unpkg.com/omi@1.1.6/dist/omi.lite.js](https://unpkg.com/omi@1.1.6/dist/omi.lite.js)
* [https://unpkg.com/omi@1.1.7/dist/omi.min.js](https://unpkg.com/omi@1.1.7/dist/omi.min.js)
* [https://unpkg.com/omi@1.1.7/dist/omi.js](https://unpkg.com/omi@1.1.7/dist/omi.js)
* [https://unpkg.com/omi@1.1.7/dist/omi.lite.min.js](https://unpkg.com/omi@1.1.7/dist/omi.lite.min.js)
* [https://unpkg.com/omi@1.1.7/dist/omi.lite.js](https://unpkg.com/omi@1.1.7/dist/omi.lite.js)
## Thanks

4
dist/omi.js vendored
View File

@ -1,5 +1,5 @@
/*!
* Omi v1.1.6 By dntzhang
* Omi v1.1.7 By dntzhang
* Github: https://github.com/AlloyTeam/omi
* MIT Licensed.
*/
@ -1741,7 +1741,7 @@ return /******/ (function(modules) { // webpackBootstrap
g2 = "";
}
if (g0.indexOf(';base64') > 0) {
if (g0.indexOf(';base64') !== -1 || g0.indexOf('/') !== -1) {
return g0;
}

4
dist/omi.lite.js vendored
View File

@ -1,5 +1,5 @@
/*!
* Omi v1.1.6 By dntzhang
* Omi v1.1.7 By dntzhang
* Github: https://github.com/AlloyTeam/omi
* MIT Licensed.
*/
@ -1125,7 +1125,7 @@ return /******/ (function(modules) { // webpackBootstrap
g2 = "";
}
if (g0.indexOf(';base64') > 0) {
if (g0.indexOf(';base64') !== -1 || g0.indexOf('/') !== -1) {
return g0;
}

File diff suppressed because one or more lines are too long

6
dist/omi.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "omi",
"version": "1.1.6",
"version": "1.1.7",
"description": "Open and modern framework for building user interfaces.",
"main": "dist/omi.js",
"scripts": {

View File

@ -17,7 +17,7 @@ function scoper(css, prefix) {
g2 = ""
}
if (g0.indexOf(';base64') > 0) {
if (g0.indexOf(';base64') !== -1 || g0.indexOf('/') !== -1) {
return g0;
}

View File

@ -80,4 +80,13 @@ describe("scoper", function() {
expect(actual).toBe(expected);
});
});
describe("Comment", function() {
var rule = "/* .item:nth-child(odd) {float: left;}*/";
var expected = rule;
var actual = style.scoper(rule, "#scoper-1");
it("expect font faces works well", function() {
expect(actual).toBe(expected);
});
});
});