Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Prevent binding to attribute changes executed inside function

$
0
0

I have have a function with attribute changes inside like that: 

  1. function(){            

  2.       // I want to bind function to change of map1.a
  3.       var result = map1.attr('a')

  4.      //while this function runs I want to execute some action with map2.b, 
  5.       //but don't want its changes to be handled here
  6.      map2.atrr('b', 2)                 
  7.       
  8.       return result

  9. }

function will be called each time when map1.a and map2.b are changing is it possible to prevent binding to chenges map2.b?

Viewing all articles
Browse latest Browse all 3491

Trending Articles