Permalink
Browse files

Non-destructively reverse the types array.

  • Loading branch information...
1 parent a38f5fd commit e73c976ddd289bb2ca421cad746bb4fb4fb33659 Michael Aufreiter committed Apr 14, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 data.js
View
@@ -182,8 +182,7 @@
// Property lookup according to the type chain
property: function(property) {
var p = null;
-
- _.find(this.types.reverse(), _.bind(function(type) {
+ _.find(_.clone(this.types).reverse(), _.bind(function(type) {
return p = this.host.get(type).properties[property];
}, this));
return p;

0 comments on commit e73c976

Please sign in to comment.