minor fixes

This commit is contained in:
Torsten Ruger 2015-07-30 15:05:57 +03:00
parent 9afaeba302
commit eba80177ae
5 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@ $susy: (
.block-view {
@include span(4);
margin-right: span(3);
margin-right: span(2);
height: 200px;
}

View File

@ -3,7 +3,7 @@ class BlocksModel < Volt::ArrayModel
def instruction_changed old , ins
self.last._class_name = "inactive" if( self.length > 0)
self << { :name => ins.to_s , :class_name => "bright" }
puts "block #{self.length}"
#puts "block #{self.length}"
self.delete_at(0) if( self.length > 5)
end

View File

@ -18,15 +18,15 @@ class RegisterModel < Volt::Model
def object_changed reg
reg = reg.symbol unless reg.is_a? Symbol
return unless reg == name
puts "Object changed in #{reg}"
#puts "Object changed in #{reg}"
calc_fields
end
def calc_fields
#puts "My id #{objects_id} , #{objects_id.class}"
object = Virtual.machine.objects[value]
self.fields.clear
if object and ! object.is_a?(String)
self.fields.clear
clazz = object.class.name.split("::").last
#puts "found #{clazz}"
self.fields << clazz

View File

@ -24,7 +24,7 @@ class RegisterView
def object_changed reg
reg = reg.symbol unless reg.is_a? Symbol
return unless reg == register
puts "Object changed in #{reg}"
#puts "Object changed in #{reg}"
calc_fields
end

View File

@ -24,7 +24,7 @@ class RegisterView
def object_changed reg
reg = reg.symbol unless reg.is_a? Symbol
return unless reg == register
puts "Object changed in #{reg}"
#puts "Object changed in #{reg}"
calc_fields
end