Skip to main content
Rollback to Revision 2
Source Link
Nikola Vukovic
  • 376
  • 1
  • 2
  • 16
//
// maybe this:
//
"appendChild removeChild insertBefore insertAfter insertAttribute removeAttribute replaceChild createElement"
.split(" ")
.forEach(
    function ( ftype ) {
        var corefn = this[ftype]
        this[ftype] = function () {
            DomChange( ftype, arguments );
            return corefn.apply( this, arguments );
        };
    },
    Element.prototype
);
//
//  do you overide .innerHTML somehow?
//
//
// maybe this:
//
"appendChild removeChild insertBefore insertAfter insertAttribute removeAttribute replaceChild createElement"
.split(" ")
.forEach(
    function ( ftype ) {
        var corefn = this[ftype]
        this[ftype] = function () {
            DomChange( ftype, arguments );
            return corefn.apply( this, arguments );
        };
    },
    Element.prototype
);
//
//
// maybe this:
//
"appendChild removeChild insertBefore insertAfter insertAttribute removeAttribute replaceChild createElement"
.split(" ")
.forEach(
    function ( ftype ) {
        var corefn = this[ftype]
        this[ftype] = function () {
            DomChange( ftype, arguments );
            return corefn.apply( this, arguments );
        };
    },
    Element.prototype
);
//
//  do you overide .innerHTML somehow?
//
Rollback to Revision 1
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237
//
// maybe this:
//
"appendChild removeChild insertBefore insertAfter insertAttribute removeAttribute replaceChild createElement"
.split(" ")
.forEach(
    function ( ftype ) {
        var corefn = this[ftype]
        this[ftype] = function () {
            DomChange( ftype, arguments );
            return corefn.apply( this, arguments );
        };
    },
    Element.prototype
);
//
//  do you overide .innerHTML somehow?
//
//
// maybe this:
//
"appendChild removeChild insertBefore insertAfter insertAttribute removeAttribute replaceChild createElement"
.split(" ")
.forEach(
    function ( ftype ) {
        var corefn = this[ftype]
        this[ftype] = function () {
            DomChange( ftype, arguments );
            return corefn.apply( this, arguments );
        };
    },
    Element.prototype
);
//
//  do you overide .innerHTML somehow?
//
//
// maybe this:
//
"appendChild removeChild insertBefore insertAfter insertAttribute removeAttribute replaceChild createElement"
.split(" ")
.forEach(
    function ( ftype ) {
        var corefn = this[ftype]
        this[ftype] = function () {
            DomChange( ftype, arguments );
            return corefn.apply( this, arguments );
        };
    },
    Element.prototype
);
//
//
// maybe this:
//
"appendChild removeChild insertBefore insertAfter insertAttribute removeAttribute replaceChild createElement"
.split(" ")
.forEach(
    function ( ftype ) {
        var corefn = this[ftype]
        this[ftype] = function () {
            DomChange( ftype, arguments );
            return corefn.apply( this, arguments );
        };
    },
    Element.prototype
);
//
//  do you overide .innerHTML somehow?
//
//
// maybe this:
//
"appendChild removeChild insertBefore insertAfter insertAttribute removeAttribute replaceChild createElement"
.split(" ")
.forEach(
    function ( ftype ) {
        var corefn = this[ftype]
        this[ftype] = function () {
            DomChange( ftype, arguments );
            return corefn.apply( this, arguments );
        };
    },
    Element.prototype
);
//
//
// maybe this:
//
"appendChild removeChild insertBefore insertAfter insertAttribute removeAttribute replaceChild createElement"
.split(" ")
.forEach(
    function ( ftype ) {
        var corefn = this[ftype]
        this[ftype] = function () {
            DomChange( ftype, arguments );
            return corefn.apply( this, arguments );
        };
    },
    Element.prototype
);
//
//  do you overide .innerHTML somehow?
//
Source Link
Nikola Vukovic
  • 376
  • 1
  • 2
  • 16
Loading