|
@@ -168,37 +168,6 @@ class Boot {
|
|
|
flash.system.Capabilities = System.capabilities;
|
|
|
flash.system.Security = System.security;
|
|
|
flash.system.IME = System["IME"];
|
|
|
- Node = _global["XMLNode"];
|
|
|
- Node.prototype.removeChild = Node.prototype.removeNode;
|
|
|
- Node.prototype.replaceChild = function(cnew,cold) {
|
|
|
- this.insertBefore(cnew,cold);
|
|
|
- this.removeChild(cold);
|
|
|
- };
|
|
|
- Node.prototype.nodes = function() {
|
|
|
- return untyped {
|
|
|
- p : 0,
|
|
|
- a : this.childNodes,
|
|
|
- next : function() {
|
|
|
- while( true ) {
|
|
|
- var x = this.a[this.p];
|
|
|
- if( x == null )
|
|
|
- return null;
|
|
|
- this.p++;
|
|
|
- if( x.nodeType == 1 )
|
|
|
- return x;
|
|
|
- }
|
|
|
- return null;
|
|
|
- },
|
|
|
- hasNext : function() {
|
|
|
- var x = this.next();
|
|
|
- if( x != null ) {
|
|
|
- this.p--;
|
|
|
- return true;
|
|
|
- }
|
|
|
- return false;
|
|
|
- }
|
|
|
- };
|
|
|
- };
|
|
|
Array.prototype.copy = Array.prototype.slice;
|
|
|
Array.prototype.insert = function(i,x) {
|
|
|
this.splice(i,0,x);
|