mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
Contacts: Removed js compatibility functions now in core.
This commit is contained in:
parent
fb7fd6fc2c
commit
1589866f8c
24
js/app.js
24
js/app.js
@ -6,30 +6,6 @@ Modernizr.load({
|
||||
]
|
||||
});
|
||||
|
||||
if (typeof Object.create !== 'function') {
|
||||
Object.create = function (o) {
|
||||
function F() {}
|
||||
F.prototype = o;
|
||||
return new F();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
if (typeof Object.keys !== 'function') {
|
||||
Object.keys = function(o) {
|
||||
if (o !== Object(o)) {
|
||||
throw new TypeError('Object.keys called on a non-object');
|
||||
}
|
||||
var k=[],p;
|
||||
for (p in o) {
|
||||
if (Object.prototype.hasOwnProperty.call(o,p)) {
|
||||
k.push(p);
|
||||
}
|
||||
}
|
||||
return k;
|
||||
}
|
||||
}
|
||||
|
||||
(function($) {
|
||||
$.QueryString = (function(a) {
|
||||
if (a == "") return {};
|
||||
|
Loading…
Reference in New Issue
Block a user