 
 
 $ = jQuery
-isIE = not not /msie [\w.]+/.exec navigator.userAgent.toLowerCase()
+isIE = /msie [\w.]+/.test navigator.userAgent.toLowerCase()
 debounce = if isIE then 100 else 0
-
 
 # Extracted from jQuery UI Core (to remove dependency)
 # https://github.com/jquery/jquery-ui/blob/24756a978a977d7abbef5e5bce403837a01d964f/ui/jquery.ui.core.js#L60

    else if typeof options is 'object' or not options
        jQueryMethods.init.apply this, arguments
    else
        $.error "jQuery.drop: Method #{ options } does not exist"
    scrollParent: ->
        scrollParent = undefined

        if (isIE and @css('position') in ['static', 'relative']) or @css('position') is 'absolute'
            scrollParent = @parents().filter(=>
                $.css(this, 'position') in ['relative', 'absolute', 'fixed'] and /(auto|scroll)/.test(@css('overflow') + @css('overflow-y') + @css('overflow-x'))
            ).first()

        else
            scrollParent = @parents().filter(=>
                /(auto|scroll)/.test(@css('overflow') + @css('overflow-y') + @css('overflow-x'))
            ).first()

        return @css('position') is 'fixed' or (if scrollParent.length then scrollParent else $('html'))


$.fn.removeClassPrefix = (prefix) ->
    $(@).attr 'class', (index, className) ->
        className.replace(new RegExp("\\b#{ prefix }\\S+", 'g'), '').replace(/\s+/g, ' ')

$ ->

