Skip to content

Commit

Permalink
dojox.lang.oo: rephrasing tests for default object methods, !strict, …
Browse files Browse the repository at this point in the history
…refs #10380.

git-svn-id: http://svn.dojotoolkit.org/src/dojox/trunk@20882 560b804f-0ae3-0310-86f3-f6aa0a117693
  • Loading branch information
uhop committed Nov 23, 2009
1 parent faf5254 commit 934c200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang/oo/mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ dojo.require("dojox.lang.oo.Decorator");
prop = source[name];
if(!(name in empty) || empty[name] !== prop){
targetName = filter(name, target, source, prop);
if(!(targetName in target) || (target[targetName] !== prop && (!(targetName in empty) || empty[targetName] !== prop))){
if(targetName && (!(targetName in target) || !(targetName in empty) || empty[targetName] !== prop)){
// name is accepted
oldValue = target[targetName];
newValue = applyDecorator(decorator, targetName, prop, oldValue);
Expand All @@ -86,7 +86,7 @@ dojo.require("dojox.lang.oo.Decorator");
prop = source[name];
if(!(name in empty) || empty[name] !== prop){
targetName = filter(name, target, source, prop);
if(!(targetName in target) || (target[targetName] !== prop && (!(targetName in empty) || empty[targetName] !== prop))){
if(targetName && (!(targetName in target) || !(targetName in empty) || empty[targetName] !== prop)){
// name is accepted
oldValue = target[targetName];
newValue = applyDecorator(decorator, targetName, prop, oldValue);
Expand Down

0 comments on commit 934c200

Please sign in to comment.