mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Update straps.js
This commit is contained in:
parent
294bfc9c9a
commit
a163d890e6
1 changed files with 5 additions and 3 deletions
|
@ -101,7 +101,7 @@ var Base = new function() {
|
|||
* (and inherinting from) base.
|
||||
*/
|
||||
function inject(dest, src, enumerable, base, preserve, generics) {
|
||||
var beans, bean;
|
||||
var beans;
|
||||
|
||||
/**
|
||||
* Private function that injects one field with given name and checks if
|
||||
|
@ -126,7 +126,8 @@ var Base = new function() {
|
|||
// defining a getter, don't lookup previous value, but look if
|
||||
// the property exists (name in dest) and store result in prev
|
||||
prev = preserve || isFunc
|
||||
? (val && val.get ? name in dest : dest[name]) : null;
|
||||
? (val && val.get ? name in dest : dest[name]) : null,
|
||||
bean;
|
||||
if ((dontCheck || val !== undefined && src.hasOwnProperty(name))
|
||||
&& (!preserve || !prev)) {
|
||||
// Expose the 'super' function (meaning the one this function is
|
||||
|
@ -183,7 +184,8 @@ var Base = new function() {
|
|||
// support of this.base() (See above).
|
||||
for (var i = 0, l = beans && beans.length; i < l; i++)
|
||||
try {
|
||||
var bean = beans[i], part = bean[1];
|
||||
var bean = beans[i],
|
||||
part = bean[1];
|
||||
field(bean[0], {
|
||||
get: dest['get' + part] || dest['is' + part],
|
||||
set: dest['set' + part]
|
||||
|
|
Loading…
Reference in a new issue