Better document new Bootstrap feature.

This commit is contained in:
Jürg Lehni 2012-12-15 19:52:52 +01:00
parent b535d9f843
commit 846744d301

4
lib/bootstrap.js vendored
View file

@ -148,7 +148,9 @@ var Base = new function() { // Bootstrap scope
// the parameters and use the arguments array internally
// instead.
if (beans && (bean = name.match(/^(get|is)(([A-Z])(.*))$/))
// Reg-exp to detect non-hidden parameters
// Reg-exp to detect non-hidden parameters. We only
// produce beans if there are no parameters or only
// hidden ones:
&& !/^function\s*\(.*\b[^_,].*\)/.test(val))
beans.push([ bean[3].toLowerCase() + bean[4], bean[2] ]);
}