no need for standardMethods anymore
This commit is contained in:
parent
ba9bf2ee4b
commit
490a80fda7
|
@ -205,9 +205,6 @@ function getDocsJSON() {
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
function getDoc(key) {
|
function getDoc(key) {
|
||||||
var standardElement = new Ox.Element();
|
|
||||||
var standardMethods = Ox.filter(Ox.keys(standardElement), function(m) { return typeof standardElement[m] === 'function' });
|
|
||||||
|
|
||||||
//FIXME: eventually we want to document all Ox values and functions
|
//FIXME: eventually we want to document all Ox values and functions
|
||||||
if (!/^[A-Z][a-z]/.test(key)) {
|
if (!/^[A-Z][a-z]/.test(key)) {
|
||||||
return false
|
return false
|
||||||
|
@ -219,7 +216,6 @@ function getDocsJSON() {
|
||||||
'functionString': functionString
|
'functionString': functionString
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var functionString = Ox[key].toString();
|
|
||||||
try {
|
try {
|
||||||
var o = new Ox[key]();
|
var o = new Ox[key]();
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
|
@ -232,6 +228,7 @@ function getDocsJSON() {
|
||||||
var opts = {};
|
var opts = {};
|
||||||
if ('options' in o && typeof o['options'] == 'function') {
|
if ('options' in o && typeof o['options'] == 'function') {
|
||||||
var opts = o.options();
|
var opts = o.options();
|
||||||
|
//only inclue methods that are defined in the function
|
||||||
var _methods = Ox.filter(Ox.keys(o), function(m) { return (functionString.indexOf('that.'+m+' =') > -1 && typeof o[m] === 'function')});
|
var _methods = Ox.filter(Ox.keys(o), function(m) { return (functionString.indexOf('that.'+m+' =') > -1 && typeof o[m] === 'function')});
|
||||||
$.each(_methods, function(i, m) { methods[m] = o[m].toString() });
|
$.each(_methods, function(i, m) { methods[m] = o[m].toString() });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user