Sha256: 89a6928ca81e8c6fe986e1b6f528ca63dc0ccb69f24b032617b0e744a8ea66d4

Contents?: true

Size: 526 Bytes

Versions: 1

Compression:

Stored size: 526 Bytes

Contents

class Embeditor.Adapters.Polldaddy extends Embeditor.Adapters.Oembed
    className: "Polldaddy"

    @Endpoint = "http://polldaddy.com/oembed/" # Doesn't work w/o trailing slash...

    @QueryDefaults =
        maxwidth  : 620
        maxheight : 550
        format    : 'json'


    constructor: (@element, @options={}) ->
        super

        # Work around a polldaddy bug where the oembed endpoint doesn't
        # properly recognize SSL URL's given to it.
        @href = Embeditor.Utility.convertProtocolToHttp(@href)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
embeditor-rails-0.1.0 app/assets/javascripts/embeditor/adapters/polldaddy.js.coffee