Sha256: b5c5502bc112d2aeba09127c61a7c8b8d59367b012aab5755db19cf54481e4a9

Contents?: true

Size: 758 Bytes

Versions: 1

Compression:

Stored size: 758 Bytes

Contents

class @SharingTags.BaseShare

  url: null
  title: null
  description: null

  constructor: ({@url, @title, @description})->
    unless @url && @title && @description
      throw new SharingTags.Error("Error could not initialize sharing class, with params:#{ " #{arg}: '#{val}'" for arg, val of arguments[0]}")

  open_popup: ->

class @SharingTags.FacebookShare extends @SharingTags.BaseShare

  # available providers: sharer, fb_ui, dialog
  @default_provider: "fb_ui"
  @provider: "fb_ui"

  app_id:     null
  return_url: null
  provider:   null

  constructor: ({@app_id, @return_url, @provider})->
    super

  share: ()->

  sharer: ->
    #    @open_popup("http://www.facebook.com/sharer.php", u: @url)

  fb_ui: ->

  dialog: ->


  # call trigger

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sharing_tags-0.0.6 app/assets/javascripts/sharing_tags/share/facebook.coffee