Add a new color picker...

This commit is contained in:
Paulo Veiga
2011-08-09 01:45:24 -03:00
parent 234a54b166
commit 7d9af403fe
17 changed files with 5958 additions and 5534 deletions

View File

@@ -50,7 +50,7 @@
<includes>
<include>${basedir}/target/tmp/header-min.js</include>
<include>${basedir}/target/tmp/ColorPicker-min.js</include>
<include>${basedir}/target/tmp/Loader-min.js</include>
<include>${basedir}/target/tmp/Functions-min.js</include>
<include>${basedir}/target/tmp/log4js-min.js</include>
<include>${basedir}/target/tmp/Monitor-min.js</include>
<include>${basedir}/target/tmp/Point-min.js</include>
@@ -64,6 +64,7 @@
</aggregations>
<nomunge>true</nomunge>
<jswarn>false</jswarn>
<force>true</force>
</configuration>
</execution>
</executions>

View File

@@ -0,0 +1,26 @@
/*
Function: $defined
Returns true if the passed in value/object is defined, that means is not null or undefined.
Arguments:
obj - object to inspect
*/
$defined = function(obj) {
return (obj != undefined);
};
$assert = function(assert, message) {
if (!$defined(assert) || !assert) {
var stack;
try {
null.eval();
} catch(e) {
stack = e;
}
wLogger.error(message + "," + stack);
// core.Logger.logError(message + "," + stack);
}
};

View File

@@ -24,18 +24,6 @@ core.Utils =
}
};
/*
Function: $defined
Returns true if the passed in value/object is defined, that means is not null or undefined.
Arguments:
obj - object to inspect
*/
function $defined(obj) {
return (obj != undefined);
}
;
/**
* http://kevlindev.com/tutorials/javascript/inheritance/index.htm
* A function used to extend one class with another
@@ -58,21 +46,6 @@ objects.extend = function(subClass, baseClass) {
subClass.superClass = baseClass.prototype;
};
$assert = function(assert, message) {
if (!$defined(assert) || !assert) {
var stack;
try {
null.eval();
} catch(e) {
stack = e;
}
wLogger.error(message + "," + stack);
// core.Logger.logError(message + "," + stack);
}
};
Math.sign = function(value) {
return (value >= 0) ? 1 : -1;
};