Add a new color picker...
This commit is contained in:
@@ -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>
|
||||
|
26
core-js/src/main/javascript/Functions.js
Normal file
26
core-js/src/main/javascript/Functions.js
Normal 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);
|
||||
|
||||
}
|
||||
};
|
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user