Sha256: c8db0c3b4f1b68efd86d09ec8ebf8ad5520fbb2aafafde69e68f34b3ff4e0b82

Contents?: true

Size: 603 Bytes

Versions: 24

Compression:

Stored size: 603 Bytes

Contents

'use strict'

define 'aura/extensions/stamps', ->


  name: 'stamps'

  version: '0.1.0'

  require:
    paths:
      stampit: 'aura/extensions/stamps/stampit'

  initialize: (application) ->
    {sandbox, core} = application
    stampit = require 'stampit'

    core.stamps = {}

    # TODO store stamps on a sandbox basis too
    sandbox.stamp = core.stamp = stampit.mixIn (name, params...) ->
      unless typeof name == 'string'
        params.unshift name
        name = null

      stamp = stampit.apply stampit, params

      if name then core.stamps[name] = stamp else stamp

    , stampit





Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ende-0.5.22 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.21 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.20 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.19 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.18 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.17 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.16 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.15 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.14 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.13 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.12 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.10 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.9 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.8 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.7 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.6 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.4.25 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.5 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.4 lib/assets/javascripts/aura/extensions/stamps.js.coffee
ende-0.5.3 lib/assets/javascripts/aura/extensions/stamps.js.coffee