mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Better document new Bootstrap feature.
This commit is contained in:
parent
b535d9f843
commit
846744d301
1 changed files with 3 additions and 1 deletions
4
lib/bootstrap.js
vendored
4
lib/bootstrap.js
vendored
|
@ -148,7 +148,9 @@ var Base = new function() { // Bootstrap scope
|
||||||
// the parameters and use the arguments array internally
|
// the parameters and use the arguments array internally
|
||||||
// instead.
|
// instead.
|
||||||
if (beans && (bean = name.match(/^(get|is)(([A-Z])(.*))$/))
|
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))
|
&& !/^function\s*\(.*\b[^_,].*\)/.test(val))
|
||||||
beans.push([ bean[3].toLowerCase() + bean[4], bean[2] ]);
|
beans.push([ bean[3].toLowerCase() + bean[4], bean[2] ]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue