object.keys workaround
This commit is contained in:
parent
612ecc5e55
commit
396775bf8c
src
@ -2,8 +2,7 @@
|
||||
* EditableForm utilites
|
||||
*/
|
||||
(function ($) {
|
||||
$.extend($.fn.editableform, {
|
||||
utils: {
|
||||
$.fn.editableform.utils = {
|
||||
/**
|
||||
* classic JS inheritance function
|
||||
*/
|
||||
@ -99,7 +98,24 @@
|
||||
}
|
||||
});
|
||||
return data;
|
||||
},
|
||||
|
||||
objectKeys: function(o) {
|
||||
if (Object.keys) {
|
||||
return Object.keys(o);
|
||||
} else {
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
}(window.jQuery));
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
Select (dropdown) input
|
||||
Select (dropdown)
|
||||
|
||||
@class select
|
||||
@extends list
|
||||
|
Loading…
x
Reference in New Issue
Block a user