This commit is contained in:
John Bintz 2012-10-02 15:50:56 -04:00
commit 281a54c4e5
3 changed files with 4 additions and 2 deletions

View File

@ -38,6 +38,8 @@ this.Bullseye = {
break;
}
controller = controller.replace('/', '-');
if (this.targets[controller] && this.targets[controller][action]) {
this.targets[controller][action].apply(this.context);
}

View File

@ -11,7 +11,7 @@ module Bullseye
end
def parts
@source.split('/')
@parts ||= @source.split('/')
end
class PartFinder

View File

@ -15,7 +15,7 @@ module Bullseye
end
def evaluate(scope, locals, &block)
@source = scope.logical_path[1..-1]
@source = scope.logical_path.gsub(%r{^[^/]*/}, '')
<<-JS
Bullseye.target('#{controller}', #{actions.to_json}, function() {