Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. JavaScript
  4. ./watch is compiling the JS library files mostly but one file it is always caching

./watch is compiling the JS library files mostly but one file it is always caching

Scheduled Pinned Locked Moved JavaScript
helpjavascriptjsonquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    simpledeveloper
    wrote on last edited by
    #1

    Hi All I am using Ember even though I am making changes but when I run the ./watch its not producing the JavaScript file with new code - its annoying - I am making the manual change but that's not correct solution right? I made the change to the file even by opening in folder and manually updated the code on ember file - still its writing the old code in app.js file. What could be the reason I don't know. I am using Web Pack to run ./watch and generate the app.js file Here is my Ember js code:

    export default () => {
    IMS.registerController("case.details.assignedinspector.edit", {

    caseDetails: Ember.inject.controller('caseDetails'),
    caseId: Ember.computed.alias('caseDetails.model.imscase.id'),
    clearForm: function () {
        $('.modal').modal('hide');
    },
    actions: {
        close: function (id) {
            $('.modal').modal('hide');
            this.transitionToRoute('case.details');
        },
    
        async save() {
            var scope = this;
    
            //validating form
            if ($("#edit-assignedinspector-form").validate()) {
                var data = {                    
                    AssignedToInvestigators: Ember.get(scope, 'model.imscase.assignedToInvestigators'), //AssignedToInspectorId: $("#assignedInspectorSelect").chosen().val(),
                    CaseId: this.get('caseId')
                };
                try {
                    let response = await this.api('Case/UpdateAssignedInvestigators').post(data);
                    $('.modal').modal('hide');
                    toastr.success("Assigned Inspector Edit Saved.");
                    scope.transitionToRoute("case.details");
                    scope.get('caseDetails').refreshData();
                    scope.clearForm();
                } catch (ex) {
                    toastr.error("Error saving Assigned Inspector.");
                }
            }
            else {
                toastr.warning("Please fix the form", "Validation failed");
            }
        },
        didInsert: function () {
            $('#edit-assignedinspector-modal').modal();
        }
    }
    

    });
    }

    Here is how its generating the old code in app.js file - any help please?

      save: function () {
        var \_save = \_asyncToGenerator(
        /\*#\_\_PURE\_\_\*/
        regeneratorRuntime.mark(function \_callee() {
          var scope, data, response;
          return regeneratorRuntime.wrap(function \_callee$(\_context) {
            while (1) {
    
    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups