Skip to content

Commit

Permalink
update import-style
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Feb 19, 2014
1 parent fe06c24 commit acc663e
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 126 deletions.
10 changes: 5 additions & 5 deletions build/import-style-min.js

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

8 changes: 5 additions & 3 deletions build/import-style.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright 2013, KISSY v1.41
Copyright 2014, KISSY v1.41
MIT Licensed
build time: Dec 4 22:16
build time: Feb 19 17:22
*/
/**
* use document.write to load external css files in block loading ways.
Expand Down Expand Up @@ -60,7 +60,9 @@ build time: Dec 4 22:16
combinedUrl.push(path);
if (combined.length === 1) {
prefix = packagePath + comboPrefix;
suffix = '?t=' + encodeURIComponent(currentPackage.getTag()) + '.css';
if (currentPackage.getTag()) {
suffix = '?t=' + encodeURIComponent(currentPackage.getTag()) + '.css';
}
} else {
if ((combinedUrl.length > maxFileNum) ||
(prefix.length + combinedUrl.join(comboSep).length +
Expand Down
Loading

0 comments on commit acc663e

Please sign in to comment.