Skip to content

Commit

Permalink
Fixing a Mask issue where the target could result in being an empty s…
Browse files Browse the repository at this point in the history
…tring.
  • Loading branch information
anutron committed Feb 14, 2011
1 parent 94d1a40 commit e8727b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Interface/Mask.js
Expand Up @@ -81,7 +81,7 @@ var Mask = new Class({

inject: function(target, where){
where = where || this.options.inject ? this.options.inject.where : '' || this.target == document.body ? 'inside' : 'after';
target = target || this.options.inject ? this.options.inject.target : '' || this.target;
target = target || (this.options.inject && this.options.inject.target) || this.target;
this.element.inject(target, where);
if (this.options.useIframeShim) {
this.shim = new IframeShim(this.element, this.options.iframeShimOptions);
Expand Down Expand Up @@ -193,4 +193,4 @@ Element.implement({
return this;
}

});
});

0 comments on commit e8727b5

Please sign in to comment.