Permalink
Browse files

Updated less.js version to 1.0.41 (latest)

+ removed plugin distribution ZIP (now in main Grails repository)
  • Loading branch information...
1 parent f588533 commit 16a614b7722aa1fe7d2f9e9d6adfc156c27d51b9 David Marquis committed Feb 19, 2011
@@ -1,6 +1,6 @@
class LesscssGrailsPlugin {
// the plugin version
- def version = "0.9.3"
+ def version = "0.9.4"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "1.3.2 > *"
// the other plugins this plugin depends on
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
@@ -1,4 +1,4 @@
-<plugin name='lesscss' version='0.9.2' grailsVersion='1.3.2 &gt; *'>
+<plugin name='lesscss' version='0.9.4' grailsVersion='1.3.2 &gt; *'>
<author>David Marquis</author>
<authorEmail>davidmarquis@me.com</authorEmail>
<title>Less CSS</title>
@@ -7,7 +7,7 @@ Integration of the Less CSS framework into Grails. Less (lesscss.org) is what CS
been. The plug-in allows for automatic compilation of .less files into .css files, as well as
tools for easier development (such as auto-reload of CSS after changes in development environment).
</description>
- <documentation>http://grails.org/plugin/grails-lesscss</documentation>
+ <documentation>http://grails.org/plugin/lesscss</documentation>
<resources>
<resource>BuildConfig</resource>
<resource>DataSource</resource>
@@ -1,13 +1,10 @@
package com.github.grails.lesscss
-/**
- *
- */
class Constants {
public static final String LESS_EXTENSION = ".less"
- public static final String LESS_SCRIPT_NAME = 'less-1.0.40'
+ public static final String LESS_SCRIPT_NAME = 'less-1.0.41'
public static final String LESS_SCRIPT_FILE = "${LESS_SCRIPT_NAME}.js"
public static final String LESS_SCRIPT_LOCATION = "/js/${LESS_SCRIPT_FILE}"
}

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,5 +1,5 @@
//
-// LESS - Leaner CSS v1.0.40
+// LESS - Leaner CSS v1.0.41
// http://lesscss.org
//
// Copyright (c) 2010, Alexis Sellier
@@ -1829,14 +1829,14 @@ tree.mixin.Definition = function (name, params, rules) {
this.rules = rules;
this._lookups = {};
this.required = params.reduce(function (count, p) {
- if (p.name && !p.value) { return count + 1 }
- else { return count }
+ if (!p.name || (p.name && !p.value)) { return count + 1 }
+ else { return count }
}, 0);
this.parent = tree.Ruleset.prototype;
this.frames = [];
};
tree.mixin.Definition.prototype = {
- toCSS: function () { return "" },
+ toCSS: function () { return "" },
variable: function (name) { return this.parent.variable.call(this, name) },
variables: function () { return this.parent.variables.call(this) },
find: function () { return this.parent.find.apply(this, arguments) },
@@ -1862,7 +1862,8 @@ tree.mixin.Definition.prototype = {
match: function (args, env) {
var argsLength = (args && args.length) || 0, len;
- if (argsLength < this.required) { return false }
+ if (argsLength < this.required) { return false }
+ if ((this.required > 0) && (argsLength > this.params.length)) { return false }
len = Math.min(argsLength, this.arity);

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 16a614b

Please sign in to comment.