cloudhead
af0f9cd63c
use 'type' attribute from link tag, when performing a request
2010-11-19 15:18:35 -05:00
cloudhead
9d5eaa724e
Merge branch 'master' of github.com:cloudhead/less.js
2010-10-14 17:05:54 -04:00
cloudhead
6517d33cf1
pass url to errback()
2010-10-14 17:05:38 -04:00
neonstalwart
5dd8c1186b
fixing logic to determine less.env in the browser
2010-10-13 14:22:47 +08:00
cloudhead
d5ffb1d708
improve error reporting
2010-08-22 14:45:22 -04:00
cloudhead
ea3d92027f
attempt to fix IE relative urls
2010-08-22 14:44:45 -04:00
cloudhead
d15752ff5f
basic ability to overwrite some config options in browser
2010-08-15 10:58:52 -04:00
Fedor Indutny
afd983b9ea
Fixed dot in css name error(when using style.1.css and style.2.css), also fixed 'url()' error
2010-07-26 03:56:14 +08:00
cloudhead
1a30768af9
remove domain name and root slash from extracted id
2010-07-04 21:20:29 +02:00
cloudhead
36371a3007
fix refresh()'s timer output
2010-07-04 21:19:56 +02:00
cloudhead
a61ca3ec5b
more robust id extraction from href
2010-07-04 21:05:02 +02:00
cloudhead
90ab7188f2
(new) less.refreshStyles, and reload styles on refresh()
2010-07-04 19:21:43 +02:00
Victor Berchet
d3c873ed5f
Fix for stylesheets having a '.' in their basename
2010-07-02 01:23:46 +08:00
cloudhead
c520b5859a
force refresh on page load in development mode
2010-07-01 11:09:24 +02:00
cloudhead
a3c1c61ef0
(minor) style
2010-07-01 11:09:03 +02:00
cloudhead
45592cb3cc
(new) parse style tags with type=text/less
2010-07-01 11:08:52 +02:00
cloudhead
6426ac5c7a
support type=text/less and text/x-less for specifying stylesheets
2010-07-01 11:08:27 +02:00
cloudhead
494398e736
(minor) style fixes
2010-07-01 02:35:28 +02:00
Kristoffer Walker
eff69f5b77
bug: window.localStorage in Firefox
...
Firefox 3.6.4 throws an error when trying to access `window.localStorage`.
(at least from `chrome://` URLs in extensions if not more)
2010-06-29 19:18:24 +08:00
Kristoffer Walker
1a8188bd20
Support chrome: and resource: location protocols.
...
XMLHttpRequest tried to load `chrome:` and `resource:` protocols as if
they were not local. Change isFileProtocol flag to accurately represent
them.
2010-06-29 19:18:24 +08:00
Kristoffer Walker
3820350b9c
Use .overrideMimeType() for Firefox XHR
...
By overriding the mime type of the default XML to 'text/css' we get rid
of the automatic XML parsing and DOM building that XMLHttpRequest tries
to do whenever it gets a response.
2010-06-29 19:18:23 +08:00
cloudhead
91672f7c24
fix media type not being preserved when generated css
2010-06-27 16:11:44 -04:00
cloudhead
5021f1d679
don't depend on document.querySelectorAll
2010-06-22 21:56:45 -07:00
cloudhead
2e8a714c92
fix error reporting
2010-06-20 14:47:41 -04:00
cloudhead
8d6af09dc5
strip querystring when importing, and caching. Allow relative @import urls
2010-06-20 12:47:33 -04:00
cloudhead
7824dfc05d
track parsing/generation time
2010-06-20 12:46:42 -04:00
cloudhead
a26eb790a5
fix @import not working. Better error message for empty response
2010-06-20 01:33:03 -04:00
cloudhead
6e28483e1a
Improve log() function [browser]
2010-06-16 18:58:16 -04:00
cloudhead
3c90f43eb1
(api) less.refresh(true) reloads stylesheets from source
2010-06-16 18:57:51 -04:00
cloudhead
e529e38369
(dist) wrap script in anonymous function
2010-06-15 18:05:03 -04:00
cloudhead
4479c511cc
fix/refactor ajax in firefox [browser]
2010-06-15 14:52:17 -04:00
cloudhead
8a75acf40a
use isFileProtocol variable for dryness
2010-06-15 14:51:48 -04:00
cloudhead
9b173bf6e4
abstract localStorage a little
2010-06-15 03:52:25 -04:00
cloudhead
e961421f26
update error messages if new error [browser]
2010-06-15 02:35:52 -04:00
cloudhead
07a3a7dc64
don't replace style text if equal to new one [browser]
2010-06-15 02:17:29 -04:00
cloudhead
372f99bdc5
don't give style tags a 'title' attribute, it screws things up. [browser]
2010-06-15 02:16:55 -04:00
cloudhead
3c897024ab
make error messages work with multiple stylesheets
2010-06-15 02:12:30 -04:00
cloudhead
4e14ea045d
(api) less.refresh [browser]
2010-06-15 02:11:35 -04:00
cloudhead
c008f71db2
use : in ids, - isn't authorized as first character. use firstChild instead of childNodes[0]
2010-06-15 01:17:35 -04:00
cloudhead
3ee89922fc
various improvements to browser.js
2010-06-15 00:56:37 -04:00
cloudhead
0dcc820fe6
set optimization level depending on less.env
2010-06-14 21:43:34 -04:00
cloudhead
6705f8e501
cleanup browser.js, make ajax synch by default, with option to turn off
2010-06-14 21:30:56 -04:00
cloudhead
4135bbccbe
cleanup browser.js
2010-06-14 21:20:04 -04:00
cloudhead
7b990c656a
don't use a timer to load the stylesheets, or the body starts loading too early
2010-06-14 21:19:39 -04:00
cloudhead
4135ccf010
use two fields for cache, so we don't need to parse JSON
2010-06-14 21:08:11 -04:00
cloudhead
0d98d2401a
(api) custom port == development mode
2010-06-14 21:07:38 -04:00
cloudhead
f0ce0533f7
refactored and fixed css node creation, for watch mode
2010-06-11 18:18:40 -04:00
cloudhead
0f1f776e43
(new) set watch mode with less.watch() and .unwatch()
2010-06-11 18:17:35 -04:00
cloudhead
5365e28514
fix trying to create CSS from null root [browser]
2010-06-09 21:55:32 -04:00
cloudhead
8468209ffc
(new) ability to @import on the browser
2010-06-07 18:20:13 -04:00