Skip to content
This repository
Browse code

Fix for failing Mustache rendering in IE8 and below.

  • Loading branch information...
commit 84b3147e606f8e1c423a68bcc6d922b811ba0348 1 parent 8088b28
Josh Dean authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  view/mustache/mustache.js
2  view/mustache/mustache.js
@@ -796,7 +796,7 @@ function( can ){
796 796
 		if( defaultObserve && 
797 797
 			// if there's not a helper by this name and no attribute with this name
798 798
 			!(Mustache.getHelper(ref) &&
799  
-				can.Observe.keys(defaultObserve).indexOf(defaultObserveName) === -1) ) {
  799
+				can.inArray(defaultObserveName, can.Observe.keys(defaultObserve)) === -1) ) {
800 800
 			return defaultObserve.attr(defaultObserveName);
801 801
 		}
802 802
 		// Support helper-like functions as anonymous helpers

0 notes on commit 84b3147

Please sign in to comment.
Something went wrong with that request. Please try again.