cloudhead
bbf419b2ff
improve error reporting
2010-08-22 14:45:22 -04:00
cloudhead
b57093fa9b
attempt to fix IE relative urls
2010-08-22 14:44:45 -04:00
cloudhead
ddbc8676b6
basic ability to overwrite some config options in browser
2010-08-15 10:58:52 -04:00
Fedor Indutny
29b797e8df
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
789c829d26
remove domain name and root slash from extracted id
2010-07-04 21:20:29 +02:00
cloudhead
67dc0498d7
fix refresh()'s timer output
2010-07-04 21:19:56 +02:00
cloudhead
e85fb82754
more robust id extraction from href
2010-07-04 21:05:02 +02:00
cloudhead
b8e6455d55
(new) less.refreshStyles, and reload styles on refresh()
2010-07-04 19:21:43 +02:00
Victor Berchet
209b349552
Fix for stylesheets having a '.' in their basename
2010-07-02 01:23:46 +08:00
cloudhead
b34aa0d217
force refresh on page load in development mode
2010-07-01 11:09:24 +02:00
cloudhead
e659555279
(minor) style
2010-07-01 11:09:03 +02:00
cloudhead
518fe12d1a
(new) parse style tags with type=text/less
2010-07-01 11:08:52 +02:00
cloudhead
ce76fc7630
support type=text/less and text/x-less for specifying stylesheets
2010-07-01 11:08:27 +02:00
cloudhead
2477288bc0
(minor) style fixes
2010-07-01 02:35:28 +02:00
Kristoffer Walker
f51c923a5d
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
8c89feac3e
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
7a5e10e996
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
b1acb34260
fix media type not being preserved when generated css
2010-06-27 16:11:44 -04:00
cloudhead
3cf0239f0e
don't depend on document.querySelectorAll
2010-06-22 21:56:45 -07:00
cloudhead
770c3ca914
fix error reporting
2010-06-20 14:47:41 -04:00
cloudhead
87b428bf2f
strip querystring when importing, and caching. Allow relative @import urls
2010-06-20 12:47:33 -04:00
cloudhead
e3a84c3819
track parsing/generation time
2010-06-20 12:46:42 -04:00
cloudhead
fa286eb507
fix @import not working. Better error message for empty response
2010-06-20 01:33:03 -04:00
cloudhead
8b6fcd4e7d
Improve log() function [browser]
2010-06-16 18:58:16 -04:00
cloudhead
2d55321810
(api) less.refresh(true) reloads stylesheets from source
2010-06-16 18:57:51 -04:00
cloudhead
92db519390
(dist) wrap script in anonymous function
2010-06-15 18:05:03 -04:00
cloudhead
2755abb0cc
fix/refactor ajax in firefox [browser]
2010-06-15 14:52:17 -04:00
cloudhead
f8f2b8f61c
use isFileProtocol variable for dryness
2010-06-15 14:51:48 -04:00
cloudhead
24c3b9cbbf
abstract localStorage a little
2010-06-15 03:52:25 -04:00
cloudhead
bb1bfb2b26
update error messages if new error [browser]
2010-06-15 02:35:52 -04:00
cloudhead
b5a86f3d79
don't replace style text if equal to new one [browser]
2010-06-15 02:17:29 -04:00
cloudhead
a3ac5f24aa
don't give style tags a 'title' attribute, it screws things up. [browser]
2010-06-15 02:16:55 -04:00
cloudhead
66d29e2dd6
make error messages work with multiple stylesheets
2010-06-15 02:12:30 -04:00
cloudhead
773469d5b4
(api) less.refresh [browser]
2010-06-15 02:11:35 -04:00
cloudhead
4835eacdf4
use : in ids, - isn't authorized as first character. use firstChild instead of childNodes[0]
2010-06-15 01:17:35 -04:00
cloudhead
4a74c0049b
various improvements to browser.js
2010-06-15 00:56:37 -04:00
cloudhead
d7ce0d973d
set optimization level depending on less.env
2010-06-14 21:43:34 -04:00
cloudhead
c8a7ce9bd5
cleanup browser.js, make ajax synch by default, with option to turn off
2010-06-14 21:30:56 -04:00
cloudhead
cacba8e311
cleanup browser.js
2010-06-14 21:20:04 -04:00
cloudhead
e3888bfdd2
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
639a5dd3d6
use two fields for cache, so we don't need to parse JSON
2010-06-14 21:08:11 -04:00
cloudhead
77f82601aa
(api) custom port == development mode
2010-06-14 21:07:38 -04:00
cloudhead
a386380afb
refactored and fixed css node creation, for watch mode
2010-06-11 18:18:40 -04:00
cloudhead
09fc69b654
(new) set watch mode with less.watch() and .unwatch()
2010-06-11 18:17:35 -04:00
cloudhead
03e94d2860
fix trying to create CSS from null root [browser]
2010-06-09 21:55:32 -04:00
cloudhead
183f285f24
(new) ability to @import on the browser
2010-06-07 18:20:13 -04:00
cloudhead
277c45eb5e
move error message css back in error function
2010-06-07 16:26:22 -04:00
cloudhead
7a36ffd877
fix generated stylesheet title
2010-06-07 16:12:59 -04:00
cloudhead
4c27e0a9bb
decoupled single stylesheet loading
2010-06-07 16:12:25 -04:00
cloudhead
85d50c84da
Better error messages, wrap browser.js.
2010-06-07 15:47:41 -04:00