src/Scheduler.js
function (opts) {
        if (!opts.target || !opts.method) {
            return
        }

        var target = opts.target,
            method = (typeof opts.method == 'function') ? opts.method : target[opts.method]

        var element = this.hashForMethods[opts.target.id]
        if (element) {
            for (var i=0; i<element.timers.length; i++) {
                // Compare callback function
                if (element.timers[i].callback == method.bind(target)) {
                    var timer = element.timers.splice(i, 1)
                    timer = null
                }
            }
        }
    }
function (opts) {
        if (!opts.target || !opts.method) {
            return
        }

        var target = opts.target,
            method = (typeof opts.method == 'function') ? opts.method : target[opts.method]

        var element = this.hashForMethods[opts.target.id]
        if (element) {
            for (var i=0; i<element.timers.length; i++) {
                // Compare callback function
                if (element.timers[i].callback == method.bind(target)) {
                    var timer = element.timers.splice(i, 1)
                    timer = null
                }
            }
        }
    }
function ( opts ) { if ( ! opts . target || ! opts . method ) { return } var target = opts . target , method = ( typeof opts . method == 'function' ) ? opts . method : target [ opts . method ] var element = this . hashForMethods [ opts . target . id ] if ( element ) { for ( var i = 0 ; i < element . timers . length ; i ++ ) { // Compare callback function if ( element . timers [ i ] . callback == method . bind ( target ) ) { var timer = element . timers . splice ( i , 1 ) timer = null } } } }
Unshedules a selector for a given target.
If you want to unschedule the "update", use unscheduleUpdateForTarget.
Unshedules a selector for a given target . If you want to unschedule the update use unscheduleUpdateForTarget .