2014-03-11 02:18:57 -05:00
|
|
|
/*global Element:true, document:true, window:true, $:true, jQuery:true */
|
|
|
|
/*exported precompileEmberHandlebars, $, jQuery */
|
2013-02-05 13:16:51 -06:00
|
|
|
// 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;
|
|
|
|
|
|
|
|
// Console
|
|
|
|
var console = window.console = {};
|
|
|
|
console.log = console.info = console.warn = console.error = function(){};
|
|
|
|
|
2014-03-11 02:18:57 -05:00
|
|
|
/*jshint -W120 */
|
2013-02-05 13:16:51 -06:00
|
|
|
// jQuery
|
2013-03-05 14:39:21 -06:00
|
|
|
var $ = jQuery = window.jQuery = function() { return jQuery; };
|
2014-03-11 02:18:57 -05:00
|
|
|
/*jshint +W120*/
|
2013-02-05 13:16:51 -06:00
|
|
|
jQuery.ready = function() { return jQuery; };
|
|
|
|
jQuery.inArray = function() { return jQuery; };
|
|
|
|
jQuery.event = {
|
2013-02-25 10:42:20 -06:00
|
|
|
fixHooks: function() {
|
2013-02-05 13:16:51 -06:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
jQuery.jquery = "1.7.2";
|
|
|
|
var $ = jQuery;
|
|
|
|
|
|
|
|
// Ember
|
|
|
|
function precompileEmberHandlebars(string) {
|
|
|
|
return Ember.Handlebars.precompile(string).toString();
|
2013-02-25 10:42:20 -06:00
|
|
|
}
|