Merge branch 'master' of github.com:cloudhead/less.js
This commit is contained in:
commit
dd87c3bae9
@ -147,7 +147,7 @@ function createCSS(styles, sheet, lastModified) {
|
||||
var href = sheet.href ? sheet.href.replace(/\?.*$/, '') : '';
|
||||
|
||||
// If there is no title set, use the filename, minus the extension
|
||||
var id = 'less:' + (sheet.title || href.match(/(?:^|\/)([-\w]+)\.[a-z]+$/i)[1]);
|
||||
var id = 'less:' + (sheet.title || href.match(/(?:^|\/)([-\w.]+)\.[a-z]+$/i)[1]);
|
||||
|
||||
// If the stylesheet doesn't exist, create a new node
|
||||
if ((css = document.getElementById(id)) === null) {
|
||||
|
Loading…
Reference in New Issue
Block a user