Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

Complete path of changed object #77

@qualityking

Description

@qualityking

Currently if i am changing something at level2 or level3 it just show me property name which got changed, but not full path

var root= {
  level1 : {
    something : 'at level 1',
    level2: { something : 'at level2', 
        level3: {
                something : 'something at level3'
            }
        }
  }
}


watch(root,  function(prop, action, newvalue, oldvalue){
        alert(prop+" - action: "+action+" - new: "+newvalue+", old: "+oldvalue+"... and the context: "+JSON.stringify(this));
    });


root.level1.level2.level3.something = 'updated at level3'

Any possibility that i will get "root.level1.level2.level3.something" rather than just "something" because property "something" is available at all levels.

Well i just want to thank you for this great efforts!!!

  • Manish Bansal

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions