Umbraco-cms: V8: infiniteMode or infinityMode - typo?

Created on 5 Aug 2019  路  6Comments  路  Source: umbraco/Umbraco-CMS

Whilst developing a custom property-editor, I'd noticed in the angularjs controller model there are properties for both infiniteMode and infinityMode. I can't help but think that the latter is a typo.

I've searched over the latest (v8.1.1) source code and found the following references...

Is this a typo? Should we correct it? _(I'm not sure what this means in terms of a breaking-change)_

communitpr releas8.1.3 typbug

Most helpful comment

buzz_lightyear_to_infinity_and_beyond

All 6 comments

it should be infinite :/ I'm sure there's some magic way to make it not breaking but it probably won't be pretty.

How about just implementing infiniteMode everywhere and keep infinityMode supported as deprecated until say 8.3? Obvs this would need to be mentioned in the release notes for 8.2 then and maybe also in the next patch release.

I'm sure I can pick this task up if need be.

Ah. Turns out we can safely remove the typo. "infinityMode" is not used in any directive specifications or similar. It is solely used for inner workings (and wrongly so, see PR description in #6084), so we're not breaking anything by removing it.

buzz_lightyear_to_infinity_and_beyond

Was this page helpful?
0 / 5 - 0 ratings