Sha256: 59d5b332c80cbca825f64ff632e34f9841ebed966c353180972168369a76bcd4

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

# TODO think if require jquery and jquery inview in this place is actualy a good idead


# TODO use requirejs alias / packing modules definition for this
define 'ende', ['config/load_components', 'config/initializers', 'jquery.ujs'], ->

  # Override defaults components definition
  # TODO better way to forward component modules to application
  define 'observable'   , [], -> require("indefinido-observable").mixin
  define 'advisable'    , [], -> require("indefinido-advisable").mixin

  # TODO FIX THIS!
  require.register('observable', (r, e, module) -> module.exports = require("indefinido-observable").mixin)
  require.register('advisable' , (r, e, module) -> module.exports = require("indefinido-advisable").mixin )

  # TODO rename ened to ende, move shims to an extension
  define 'es5-shim'     , ['observable'], -> require "ened/vendor/assets/javascripts/polyfills/es5-shim.js"
  define 'es6-map-shim' , ['es5-shim']  , -> require "ened/vendor/assets/javascripts/polyfills/es6-map-shim.js"
  define 'es6-shim'     , ['es5-shim']  , -> require "paulmillr-es6-shim"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ende-0.4.5 lib/assets/javascripts/ende.js.coffee