js/foundation/view/view.js in rsence-pre-2.3.0.13 vs js/foundation/view/view.js in rsence-pre-2.3.0.14
- old
+ new
@@ -1524,9 +1524,19 @@
for( i in _this ){
_this[i] = null;
delete _this[i];
}
},
+
+/** = Description
+ * A convenience method to call #die after 10ms using a setTimeout.
+ * Use this method, if destroying self or destroying from a subview.
+ *
+ **/
+ dieSoon: function(){
+ var _this = this;
+ setTimeout(function(){_this.die();},10);
+ },
/** Recursive idle poller. Should be extended if functionality is desired.
**/
// onIdle: function() {
// for(var i = 0; i < this.views.length; i++) {