Permalink
Browse files

Added toString() call to can.view toId for new steal compat.

  • Loading branch information...
Ralph Holzmann
Ralph Holzmann committed Jun 2, 2012
1 parent 21fdbaa commit 19c9ca0f07b00afe3c99bf439c089948c46464a6
Showing with 1 addition and 1 deletion.
  1. +1 −1 view/view.js
View
@@ -44,7 +44,7 @@ steal("can/util")
},
// Convert a path like string into something that's ok for an `element` ID.
toId : function( src ) {
- return can.map(src.split(/\/|\./g), function( part ) {
+ return can.map(src.toString().split(/\/|\./g), function( part ) {
// Dont include empty strings in toId functions
if ( part ) {
return part;

0 comments on commit 19c9ca0

Please sign in to comment.