ember-rails 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,20 +12,15 @@ var console = window.console = {};
12
12
  console.log = console.info = console.warn = console.error = function(){};
13
13
 
14
14
  // jQuery
15
- var jQuery = function() { return jQuery };
15
+ var jQuery = window.jQuery = function() { return jQuery };
16
16
  jQuery.ready = function() { return jQuery };
17
17
  jQuery.inArray = function() { return jQuery };
18
+ jQuery.jquery = "1.7.1";
18
19
  var $ = jQuery;
19
20
 
20
21
  // Precompiler
21
22
  var EmberRails = {
22
23
  precompile: function(string) {
23
- // Copied from the Ember codebase. This will need to be updated as Ember updates...
24
- var ast = Handlebars.parse(string);
25
- var options = { data: true, stringParams: true };
26
- var environment = new Ember.Handlebars.Compiler().compile(ast, options);
27
- var templateSpec = new Ember.Handlebars.JavaScriptCompiler().compile(environment, options, undefined, true);
28
-
29
- return templateSpec.toString();
24
+ return Ember.Handlebars.precompile(string).toString();
30
25
  }
31
26
  };