dist/ember-template-compiler.js in ember-source-1.0.1 vs dist/ember-template-compiler.js in ember-source-1.1.0
- old
+ new
@@ -1,11 +1,9 @@
(function() {
-var Ember = { assert: function() {} };
-// Version: v1.0.1
-// Last commit: 697d46e (2014-01-13 21:44:17 -0500)
+var Ember = { assert: function() {}, FEATURES: { isEnabled: function() {} } };
+ // Version: 1.1.0
-
(function() {
/**
@module ember
@submodule ember-handlebars-compiler
*/
@@ -39,24 +37,10 @@
@class Handlebars
@namespace Ember
*/
Ember.Handlebars = objectCreate(Handlebars);
-function makeBindings(options) {
- var hash = options.hash,
- hashType = options.hashTypes;
-
- for (var prop in hash) {
- if (hashType[prop] === 'ID') {
- hash[prop + 'Binding'] = hash[prop];
- hashType[prop + 'Binding'] = 'STRING';
- delete hash[prop];
- delete hashType[prop];
- }
- }
-}
-
/**
Register a bound helper or custom view helper.
## Simple bound helper example
@@ -112,11 +96,10 @@
Ember.assert("You tried to register a component named '" + name + "', but component names must include a '-'", !Ember.Component.detect(value) || name.match(/-/));
if (Ember.View.detect(value)) {
Ember.Handlebars.registerHelper(name, function(options) {
Ember.assert("You can only pass attributes (such as name=value) not bare values to a helper for a View", arguments.length < 2);
- makeBindings(options);
return Ember.Handlebars.helpers.view.call(this, value, options);
});
} else {
Ember.Handlebars.registerBoundHelper.apply(null, arguments);
}
@@ -160,11 +143,10 @@
}
Ember.Handlebars.JavaScriptCompiler.prototype.namespace = "Ember.Handlebars";
-
Ember.Handlebars.JavaScriptCompiler.prototype.initializeBuffer = function() {
return "''";
};
/**
@@ -264,10 +246,10 @@
var environment = new Ember.Handlebars.Compiler().compile(ast, options);
var templateSpec = new Ember.Handlebars.JavaScriptCompiler().compile(environment, options, undefined, true);
var template = Ember.Handlebars.template(templateSpec);
template.isMethod = false; //Make sure we don't wrap templates with ._super
-
+
return template;
};
}
\ No newline at end of file