New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

less.watch() called in production mode FIX && clearInterval @ unwatch #679

Closed
wants to merge 2 commits into
base: master
from
Jump to file or symbol
Failed to load files and symbols.
+1 −2
Diff settings

Always

Just for now

Viewing a subset of changes. View all
Prev

console.log removed

  • Loading branch information...
unknown unknown
unknown authored and unknown committed Mar 5, 2012
commit 6350e865b00763167415c52d02b111d765c98179
View
@@ -41,8 +41,7 @@ less.unwatch = function () {clearInterval(less.watchTimer); return this.watchMod
function initRunningMode(){
if (less.env === 'development') {
less.optimization = 0;
less.watchTimer = setInterval(function () {
console.log('in interval')
less.watchTimer = setInterval(function () {
if (less.watchMode) {
loadStyleSheets(function (e, root, _, sheet, env) {
if (root) {
ProTip! Use n and p to navigate between commits in a pull request.