Difference between revisions 138277 and 138375 on testwiki/// PerfektesChaos/js/WikisyntaxTextMod/?O.js // WikisyntaxTextMod: Objects for wiki syntax specific code /// 2012-06-27 [email protected] /// Fingerprint: #0#0# /// <nowiki> /* jshint curly:true, latedef:true, laxbreak:true, trailing:true, undef:true, white:false */ /* global mw: true, mediaWiki: false */ (contracted; show full)WSTM.o.WikiTom.TmplParam = 42; WSTM.o.WikiTom.TmplValue = 43; WSTM.o.WikiTom.FileParam = 48; WSTM.o.WikiTom.MagicWord = 49; WSTM.o.WikiTom.Level=0;⏎ ⏎ ⏎ ⏎ WSTM.o.WikiTom.prototype.fade = function () { // Deconstruct WikiTom node // Postcondition: // Allocated members are destroyed. // Uses: // >- this.children // >- this.source // this.children.fade() (contracted; show full) var n; var s; var r = false; if (this.lookup) { join = (typeof(already) === "number" ? already : 0); node = (typeof(assigned) === "number" ? assigned : 0); if (typeof(this.children) === "object") { if (allow) { // // // (node || allow) n = this.children.length; j = join; /* if(WSTM.o.WikiTom.Level>0){ mw.log(WSTM.debugging,".o.WikiTom().find() "+WSTM.o.WikiTom.Level+" n="+n+" j="+j+" "+achieve,0); if(WSTM.o.WikiTom.Level>22){ return false; } } */ for (i = node; i < n; i++) { e = this.children[i]; //WSTM.o.WikiTom.Level++; /////////////////////////////////////////////// // r = e.find(achieve, j, 0, true, false, true) for (i = node; i < n; i++) { e = this.children[i]; r = e.find(achieve, j, 0, attached, false, attached); //WSTM.o.WikiTom.Level--;⏎ if (r) { if (attached) { r.child = { i: r.i, k: r.k, o: this }; } r.k = i; /* if(WSTM.o.WikiTom.Level>0){ mw.log(WSTM.debugging,".o.WikiTom().find() r",0,r); } */⏎ break; // for i } if (alone) { if (e.limited) { break; // for i } } j = 0;/////////////////////////// /* if(WSTM.o.WikiTom.Level>0){ mw.log(WSTM.debugging,".o.WikiTom().find() i="+i+" length="+this.children.length,0); } */⏎ } // for i } } else if (! node) { // plain string s = this.source; n = s.length; if (n) { if (join) { if (n > join) { (contracted; show full) // Emacs // Local Variables: // encoding: iso-8859-1-dos // fill-column: 80 // End: /// EOF </nowiki> WikiSyntaxTextMod/?O.js All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://test.wikipedia.org/w/index.php?diff=prev&oldid=138375.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|