Sha256: e0286dce0b559791212c5e36fa88896751e580cabca38e1fa84e626ca03073c8
Contents?: true
Size: 755 Bytes
Versions: 2
Compression:
Stored size: 755 Bytes
Contents
/** A visual item @class VisualItem @@abstract **/ var VisualItem = jazz.Class().abstract; /** The jQuery wrapped DOM element for the visual item @@field $el @type Object **/ VisualItem.field("$el"); /** The jQuery wrapped DOM element for the visual item @@field $el @type AnimationStatus **/ VisualItem.field("status", AnimationStatus.NOT_RENDERED); /** Renders the item's DOM object @method render **/ VisualItem.method("render", function($parent) { ($parent || $body).append(this.$el); this.status = AnimationStatus.NOT_DISPLAYED; }); /** Destroys the item's DOM object @method destroy **/ VisualItem.method("destroy", function() { this.$el.remove(); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sideshow-0.4.2 | src/interface_itens/visual_item.js |
sideshow-0.4.1 | src/interface_itens/visual_item.js |