mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-29 18:52:18 +01:00
Contacts: Remove unneeded assertion function
This commit is contained in:
parent
7cf2974e0c
commit
16e1db3113
13
js/app.js
13
js/app.js
@ -52,19 +52,6 @@ utils.moveCursorToEnd = function(el) {
|
||||
}
|
||||
}
|
||||
|
||||
function AssertException(message) { this.message = message; }
|
||||
AssertException.prototype.toString = function () {
|
||||
return 'AssertException: ' + this.message;
|
||||
}
|
||||
|
||||
// Usage: assert(obj != null, 'Object is null');
|
||||
function assert(exp, message) {
|
||||
if (!exp) {
|
||||
throw new AssertException(message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (typeof Object.create !== 'function') {
|
||||
Object.create = function (o) {
|
||||
function F() {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user