Skip to content

Instantly share code, notes, and snippets.

View KindWizzard's full-sized avatar
🎯
Focusing

Mikhail Podgorniy KindWizzard

🎯
Focusing
View GitHub Profile
@KindWizzard
KindWizzard / gist:a25e1e66590cc1b096d2
Created June 19, 2014 20:22
Отслеживание изменений свойств (IE7+)
function WatchPropery(watch_object, property_name, callback){
var current_value = watch_object[property_name],
old_ie = document.all && document.querySelector && !document.addEventListener || document.all && !document.querySelector;
// Setter
function setFunction(value){
if(current_value !== value){
current_value = value;
callback.call(watch_object, current_value)