this.dirty = true;
// Layer? Add self as new child, fix DOM
- if ( parent instanceof Layer ){
+ if ( parent instanceof Layer ) {
this.parent = parent;
parent.children.push(this);
parent.layer.append(this.layer);
for (var k in key)
this.attr(k, key[k]);
return this;
-
- // } else if ( CONTEXT_ATTRS.has(key) ) {
- // var r = Y.attr(this.ctx, key, value, def);
- //
- // if (r === this.ctx) {
- // // This implies we set a property
- // this.dirty = true;
- // return this;
- // } else
- // return r;
- //
} else
return Y.op.attr(this, key, value, def);
},
return this;
},
+ animate : function animate(props, options) {
+
+ },
+
/// Misc ///
function makeDelegate(name, dirties, prop){
prop = prop || 'layer';
- return function(){
+ return function delegate(){
if (dirties && arguments.length)
this.dirty = true;
//#ensure "jquery"
var Y = require('Y').Y
+, Layer = require('ezl/layer').Layer
, Shape = require('ezl/shape/shape').Shape
+, math = require('ezl/math')
,
Line =