You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing an object as the first argument to can.route.attr and anything as the second argument throws an error:
can.route.attr({
page: 'foo'
}, true);
error TypeError: Cannot define property _instanceDefinitions, object is not extensible
at Function.defineProperty (<anonymous>)
at Object.defineExpando (https://unpkg.com/[email protected]/dist/global/can.all.js:14845:24)
at DefineMap.setKeyValue (https://unpkg.com/[email protected]/dist/global/can.all.js:14939:37)
at Object.setKeyValue (https://unpkg.com/[email protected]/dist/global/can.all.js:1042:36)
at DefineMap.attrHelper (https://unpkg.com/[email protected]/dist/global/can.all.js:15725:28)
at Function.canRoute.attr (https://unpkg.com/[email protected]/dist/global/can.all.js:16107:27)
I think this is happening because people were previously using can-map and wanted to set the removeOthers flag and have now switched their appViewModel to DefineMap.
The text was updated successfully, but these errors were encountered:
Passing an object as the first argument to
can.route.attr
and anything as the second argument throws an error:Here is an example: http://jsbin.com/dipiwikida/1/edit?js,console.
I think this is happening because people were previously using can-map and wanted to set the
removeOthers
flag and have now switched their appViewModel to DefineMap.The text was updated successfully, but these errors were encountered: