Skip to content

Commit

Permalink
Confusingly unnecessary closure within a closure
Browse files Browse the repository at this point in the history
  • Loading branch information
appden committed May 4, 2010
1 parent 38e8b4b commit 7e1dbb6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Source/Element/Element.js
Expand Up @@ -591,17 +591,13 @@ Element.implement({

});

(function(){

var contains = {contains: function(element){
return Slick.contains(this, element);
}};

if (!document.contains) Document.implement(contains);
if (!document.createElement('div').contains) Element.implement(contains);

})();

//<1.2compat>

Element.implement('hasChild', function(element){
Expand Down

0 comments on commit 7e1dbb6

Please sign in to comment.