Sha256: ee33c80fb3d961846fee75b7d48c67064a578f2237a0c4a47d00555815ae1d23

Contents?: true

Size: 760 Bytes

Versions: 1

Compression:

Stored size: 760 Bytes

Contents

// DOM
var Element = {};
Element.firstChild = function () { return Element; };
Element.innerHTML = function () { return Element; };

var document = { createRange: false, createElement: function() { return Element; } };
var window = this;
this.document = document;

// null out console.log and console.warn to avoid unexpected output
if (window.console) {
  window.console.warn = function() {};
  window.console.log = function() {};
}

//// jQuery
var jQuery = window.jQuery = function() { return jQuery; };
jQuery.ready = function() { return jQuery; };
jQuery.inArray = function() { return jQuery; };
jQuery.jquery = "1.7.2";

// Precompiler
var EmberRails = {
  precompile: function(string) {
    return Ember.Handlebars.precompile(string).toString();
  }
};

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ember-rails-0.6.0 lib/ember/handlebars/assets/ember-precompiler.js