Fix subscriber contract failure

feature/livereload-locales-data
Thomas Reynolds 2015-05-04 10:45:03 -07:00
parent cee53d0f2d
commit 9d3c30ee53
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ module Middleman
Contract Or[Symbol, ArrayOf[Symbol]], Maybe[ArrayOf[Any]], Maybe[RespondTo[:instance_exec]] => Any
def execute(keys, args=[], scope=self)
callbacks_for(keys).each { |b| scope.instance_exec(*args, &b) }
@subscribers.each { |b| scope.instance_exec(keys, *args, &b) }
@subscribers.each { |b| scope.instance_exec(keys, args, &b) }
end
Contract Or[Symbol, ArrayOf[Symbol]] => ::Hamster::Vector