Permalink
Browse files

Fix for failing Mustache rendering in IE8 and below.

  • Loading branch information...
imjoshdean committed Jan 5, 2013
1 parent 8088b28 commit 84b3147e606f8e1c423a68bcc6d922b811ba0348
Showing with 1 addition and 1 deletion.
  1. +1 −1 view/mustache/mustache.js
@@ -796,7 +796,7 @@ function( can ){
if( defaultObserve &&
// if there's not a helper by this name and no attribute with this name
!(Mustache.getHelper(ref) &&
- can.Observe.keys(defaultObserve).indexOf(defaultObserveName) === -1) ) {
+ can.inArray(defaultObserveName, can.Observe.keys(defaultObserve)) === -1) ) {
return defaultObserve.attr(defaultObserveName);
}
// Support helper-like functions as anonymous helpers

0 comments on commit 84b3147

Please sign in to comment.