Permalink
Browse files

Fix paths with leading periods

  • Loading branch information...
wagenet committed May 30, 2012
1 parent 22a7ae9 commit bf9400510f00a2962bb36162eae642c56731a34a
Showing with 2 additions and 2 deletions.
  1. +1 −1 packages/ember-handlebars/lib/ext.js
  2. +1 −1 packages/ember-handlebars/tests/handlebars_test.js
@@ -161,7 +161,7 @@ var normalizePath = Ember.Handlebars.normalizePath = function(root, path, data)
} else {
// Strip the keyword from the path and look up
// the remainder from the newly found root.
path = path.substr(keyword.length);
path = path.substr(keyword.length+1);
}
}
@@ -245,7 +245,7 @@ test("child views can be inserted using the {{view}} Handlebars helper", functio
test("should accept relative paths to views", function() {
view = Ember.View.create({
template: Ember.Handlebars.compile('Hey look, at {{view ".myCool.view"}}'),
template: Ember.Handlebars.compile('Hey look, at {{view "myCool.view"}}'),
myCool: Ember.Object.create({
view: Ember.View.extend({

0 comments on commit bf94005

Please sign in to comment.