@@ -4801,16 +4801,15 @@ class CodeGenerator {
4801
4801
isMultiple = isMultiple || this . slotNames . has ( ast . name ) ;
4802
4802
this . slotNames . add ( ast . name ) ;
4803
4803
}
4804
- const dynProps = ast . attrs ? ast . attrs [ "t-props" ] : null ;
4805
- if ( ast . attrs ) {
4806
- delete ast . attrs [ "t-props" ] ;
4807
- }
4804
+ const attrs = { ...ast . attrs } ;
4805
+ const dynProps = attrs [ "t-props" ] ;
4806
+ delete attrs [ "t-props" ] ;
4808
4807
let key = this . target . loopLevel ? `key${ this . target . loopLevel } ` : "key" ;
4809
4808
if ( isMultiple ) {
4810
4809
key = this . generateComponentKey ( key ) ;
4811
4810
}
4812
4811
const props = ast . attrs
4813
- ? this . formatPropObject ( ast . attrs , ast . attrsTranslationCtx , ctx . translationCtx )
4812
+ ? this . formatPropObject ( attrs , ast . attrsTranslationCtx , ctx . translationCtx )
4814
4813
: [ ] ;
4815
4814
const scope = this . getPropString ( props , dynProps ) ;
4816
4815
if ( ast . defaultContent ) {
@@ -5705,7 +5704,7 @@ function compile(template, options = {
5705
5704
}
5706
5705
5707
5706
// do not modify manually. This file is generated by the release script.
5708
- const version = "2.6.0 " ;
5707
+ const version = "2.6.1 " ;
5709
5708
5710
5709
// -----------------------------------------------------------------------------
5711
5710
// Scheduler
@@ -5800,13 +5799,6 @@ class Scheduler {
5800
5799
Scheduler . requestAnimationFrame = window . requestAnimationFrame . bind ( window ) ;
5801
5800
5802
5801
let hasBeenLogged = false ;
5803
- const DEV_MSG = ( ) => {
5804
- const hash = window . owl ? window . owl . __info__ . hash : "master" ;
5805
- return `Owl is running in 'dev' mode.
5806
-
5807
- This is not suitable for production use.
5808
- See https://github.com/odoo/owl/blob/${ hash } /doc/reference/app.md#configuration for more information.` ;
5809
- } ;
5810
5802
const apps = new Set ( ) ;
5811
5803
window . __OWL_DEVTOOLS__ || ( window . __OWL_DEVTOOLS__ = { apps, Fiber, RootFiber, toRaw, reactive } ) ;
5812
5804
class App extends TemplateSet {
@@ -5823,7 +5815,7 @@ class App extends TemplateSet {
5823
5815
}
5824
5816
this . warnIfNoStaticProps = config . warnIfNoStaticProps || false ;
5825
5817
if ( this . dev && ! config . test && ! hasBeenLogged ) {
5826
- console . info ( DEV_MSG ( ) ) ;
5818
+ console . info ( `Owl is running in 'dev' mode.` ) ;
5827
5819
hasBeenLogged = true ;
5828
5820
}
5829
5821
const env = config . env || { } ;
@@ -6183,6 +6175,6 @@ TemplateSet.prototype._compileTemplate = function _compileTemplate(name, templat
6183
6175
export { App , Component , EventBus , OwlError , __info__ , batched , blockDom , loadFile , markRaw , markup , mount , onError , onMounted , onPatched , onRendered , onWillDestroy , onWillPatch , onWillRender , onWillStart , onWillUnmount , onWillUpdateProps , reactive , status , toRaw , useChildSubEnv , useComponent , useEffect , useEnv , useExternalListener , useRef , useState , useSubEnv , validate , validateType , whenReady , xml } ;
6184
6176
6185
6177
6186
- __info__ . date = '2025-01-15T10:40:24.184Z ' ;
6187
- __info__ . hash = 'a9be149 ' ;
6178
+ __info__ . date = '2025-03-05T08:37:58.580Z ' ;
6179
+ __info__ . hash = '2b5cea9 ' ;
6188
6180
__info__ . url = 'https://github.com/odoo/owl' ;
0 commit comments