Sha256: 407bca78e0b10dbfc79230cec19ccd72f266e643a1da0960a48da97b8294de8f

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

class Embeditor.Adapters.Facebook extends Embeditor.Adapters.StaticTemplate
    className: "Facebook"

    @Template = Embeditor.Template('facebook')

    @QueryDefaults =
        maxwidth  : 550
        maxheight : 600

    # For facebook, we just use the full URL, so no matchers are needed.
    @Matchers = []


    swap: ->
        @embed Facebook.Template
            maxheight   : @queryParams.maxheight,
            maxwidth    : @queryParams.maxwidth,
            url         : @href

Version data entries

1 entries across 1 versions & 1 rubygems

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