Ignore:
Timestamp:
Oct 26, 2010, 9:01:00 AM (14 years ago)
Author:
cljosse
Message:

[Autosize][beta] Add the option validation of the autosize according to the status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/js/conflit.js

    r7316 r7394  
    22var d1 = 0;
    33var init_tb = 0;
    4 
     4function addEvent2(obj, type, fn) {
     5    if (obj.addEventListener) {
     6        obj.addEventListener(type, fn, false);
     7        EC.add(obj, type, fn);
     8    }
     9    else if (obj.attachEvent) {
     10        obj["e" + type + fn] = fn;
     11        obj[type + fn] = function () {
     12            obj["e" + type + fn](window.event);
     13        }
     14        obj.attachEvent("on" + type, obj[type + fn]);
     15        EC.add(obj, type, fn);
     16    }
     17    else {
     18        obj["on" + type] = obj["e" + type + fn];
     19    }
     20}
    521function $(element, nc) {
    622    //============== détection framework ==================
Note: See TracChangeset for help on using the changeset viewer.