mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 17:58:41 +00:00
cleanup todos
This commit is contained in:
parent
0c226ca9df
commit
3423761881
|
|
@ -79,7 +79,6 @@ export class ActionManager
|
|||
return;
|
||||
}
|
||||
|
||||
// todo: validate json, if invalid log error
|
||||
const listeners = JSON.parse(e.getAttribute('data-action')),
|
||||
listenerLength = listeners.length,
|
||||
self = this;
|
||||
|
|
|
|||
|
|
@ -197,7 +197,6 @@ export class UriFactory
|
|||
} else if (match.indexOf('?') === 0) {
|
||||
return Http.getUriQueryParameter(current.query, match.substr(1));
|
||||
} else if (match.indexOf('/') === 0) {
|
||||
// todo: second match should return second path
|
||||
return 'ERROR PATH';
|
||||
} else if (match === '%') {
|
||||
return window.location.href;
|
||||
|
|
|
|||
|
|
@ -64,13 +64,17 @@
|
|||
};
|
||||
|
||||
/**
|
||||
* todo: implement deep clone/copy
|
||||
* @param obj
|
||||
* @returns {*}
|
||||
* Shallow clones an object.
|
||||
*
|
||||
* @param {Object} obj Object to clone
|
||||
*
|
||||
* @returns {Object}
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
jsOMS.clone = function (obj)
|
||||
{
|
||||
return obj;
|
||||
return { ...obj };
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -471,13 +471,17 @@
|
|||
};
|
||||
|
||||
/**
|
||||
* todo: implement deep clone/copy
|
||||
* @param obj
|
||||
* @returns {*}
|
||||
* Shallow clones an object.
|
||||
*
|
||||
* @param {Object} obj Object to clone
|
||||
*
|
||||
* @returns {Object}
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
jsOMS.clone = function (obj)
|
||||
{
|
||||
return obj;
|
||||
return { ...obj };
|
||||
};
|
||||
|
||||
jsOMS.isset = function (variable)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user