Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Morley 12 posts 103 karma points
    Nov 14, 2016 @ 11:16
    Chris Morley
    1

    Leblender Controllers not compatable with "use strict" javascript mode

    When we were bundling All our Javascript together in DependencyHandler.axd, another package was setting javascript to "use strict". This caused Leblender "LeBlender.Dialog.Parameterconfig.Controller" to throw an error on scope.Add : "ReferenceError: newItem is not defined"

    Currently: $scope.add = function () { newItem = {}; ...

    Suggested: $scope.add = function () { var newItem = {}; ...

    Details: Using: 1.0.8.4 Umbraco 7.3.1

  • David Twamley 9 posts 101 karma points
    Nov 21, 2016 @ 17:37
    David Twamley
    100

    Thanks for the fix. I experienced the same and the fix worked for me as well. I put in a PR for it.

    https://github.com/Lecoati/LeBlender/pull/55

  • Chris Morley 12 posts 103 karma points
    Oct 09, 2017 @ 15:57
    Chris Morley
    0

    Glad to see this is now been merged into the codebase and looks to be set to be released for version 1.0.9

  • Francielle 65 posts 279 karma points
    Oct 18, 2017 @ 12:16
    Francielle
    0

    I was facing this error in a project and updated parameterconfig.controller.js like this one: https://github.com/Lecoati/LeBlender/pull/55/files

    It ended up generating a new problem for me, whenever I add a new item in my website, the "Update" button does not work, meaning I cannot add it to my site. There's no console error and nothing on the logs. Have you faced this problem?

    enter image description here

  • Chris Morley 12 posts 103 karma points
    Oct 19, 2017 @ 13:45
    Chris Morley
    0

    Hi Francielle,

    I cant say i have i'm afraid. This fix was merged into leblender version 1.0.9 and is currently in beta, https://www.nuget.org/packages/Lecoati.LeBlender/1.0.9-beta2

    If you update to this version do you get the same error?

    Many thanks Chris

  • Francielle 65 posts 279 karma points
    Oct 19, 2017 @ 13:54
    Francielle
    0

    Hi Chris,

    I updated the files and it seems to have solved the problem.

    Thank you :)

Please Sign in or register to post replies

Write your reply to:

Draft