From a163d890e68d8fd78b603d4b14aa719c07633949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 12 Jun 2013 18:54:34 -0700 Subject: [PATCH] Update straps.js --- lib/straps.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/straps.js b/lib/straps.js index 5915ade0..b67b2192 100755 --- a/lib/straps.js +++ b/lib/straps.js @@ -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]