Skip to content

Commit 19c9ca0

Browse files
author
Ralph Holzmann
committed
Added toString() call to can.view toId for new steal compat.
1 parent 21fdbaa commit 19c9ca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

view/view.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ steal("can/util")
4444
},
4545
// Convert a path like string into something that's ok for an `element` ID.
4646
toId : function( src ) {
47-
return can.map(src.split(/\/|\./g), function( part ) {
47+
return can.map(src.toString().split(/\/|\./g), function( part ) {
4848
// Dont include empty strings in toId functions
4949
if ( part ) {
5050
return part;

0 commit comments

Comments
 (0)