%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home4/assumpcaocom/pass/src/coffee/
Upload File :
Create Path :
Current File : //home4/assumpcaocom/pass/src/coffee/jquery.card.coffee

Card = require './card'
$ = require('jquery')

$.card = {}
$.card.fn = {}
$.fn.card = (opts) ->
  $.card.fn.construct.apply(this, opts)

$.fn.extend card: (option, args...) ->
  @each ->
    $this = $(this)
    data = $this.data('card')

    if !data
      $.each option, (key, value) =>
        if value instanceof jQuery
          option[key] = value[0]
      option['form'] = this
      $this.data 'card', (data = new Card(option))
    if typeof option == 'string'
      data[option].apply(data, args)

Zerion Mini Shell 1.0