Skip to content

Commit

Permalink
Merge pull request #27 from phatmann/fix-null-tap
Browse files Browse the repository at this point in the history
Fix #26
  • Loading branch information
jaykz52 committed Aug 19, 2013
2 parents e932002 + f396221 commit 0da7767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mechanic-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ var mechanic = (function() {
};

UIAElement.prototype.getElementsByAttr = function(attr, value) {
return $.map(this.elements().toArray(), function(el) {
return $.map(this.elements(), function(el) {
var matches = el.getElementsByAttr(attr, value),
val = el[attr]
if (typeof val == 'function') val = val.apply(el)
Expand All @@ -156,7 +156,7 @@ var mechanic = (function() {
})
}
UIAElement.prototype.getElementsByType = function(type) {
return $.map(this.elements().toArray(), function(el) {
return $.map(this.elements(), function(el) {
var matches = el.getElementsByType(type);
if (el.isType(type)) matches.unshift(el);
return matches;
Expand Down

0 comments on commit 0da7767

Please sign in to comment.