Sha256: acbb42162a8f23de552857bcfaf464338e5c5619be4758d8cd8dbed6142874e3

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

"use strict";

var app = (function() {
  var s4 = function () {
    return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
  };

  return {
    _addSingleton: function(name, fn) {
      app[name] = fn;
      app[name].init = function(){ };
    },
    // free generator http://ajaxload.info/
    _ajax: {
      addEvent: {
        lockAfterClick: function() {
          $("a[data-remote='true']").bind('ajax:')
        }
      }
    },
    _uuid: function(){
      return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
    }
  }

})();

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appjs-rails-1.0.0 app/assets/javascripts/app.js