Use ENV.FORCE_JQUERY when building for production

This commit is contained in:
Piotr Sarnacki 2012-10-23 03:34:24 +02:00
parent f64d488973
commit ce307264c4

View File

@ -15,11 +15,15 @@ console.log = console.info = console.warn = console.error = function(){};
var jQuery = function() { return jQuery; }; var jQuery = function() { return jQuery; };
jQuery.ready = function() { return jQuery; }; jQuery.ready = function() { return jQuery; };
jQuery.inArray = function() { return jQuery; }; jQuery.inArray = function() { return jQuery; };
jQuery.jquery = "1.7.1"; jQuery.jquery = "1.7.2";
jQuery.event = { fixHooks: {} }; jQuery.event = { fixHooks: {} };
var $ = jQuery; var $ = jQuery;
window.jQuery = $; window.jQuery = $;
ENV = {};
window.ENV = ENV;
ENV.FORCE_JQUERY = true;
// Ember // Ember
function compileHandlebarsTemplate(source) { function compileHandlebarsTemplate(source) {
return Ember.Handlebars.precompile(source).toString(); return Ember.Handlebars.precompile(source).toString();