Paste number 60565: failure for cpst

Index of paste annotations: 1 | 2

Paste number 60565: failure for cpst
Pasted by: olliej
6 days, 12 minutes ago
#webkit | Context in IRC logs
Paste contents:
Raw Source | XML | Display As
<script>
function createPackage(_1) {
    var _2=_1.split("."),len=_2.length;
    var _3=window;
    for(var i=0; i<len-1 && _3 && _2[i]; i++) {
    /*     if (!(_3[_2[i]]))
             _3[_2[i]]={};
         _3=_3[_2[i]]; */
          _3=(_3[_2[i]])?_3[_2[i]]:_3[_2[i]]={};
    }
    return {pkg:_3,className:(len>0)?_2[len-1]:""};
}
var wibble = {};
createPackage("wibble.bar.wiffle");
alert(wibble.bar);
</script>

Annotations for this paste:

Annotation number 1: reduction for cpst
Pasted by: olliej
6 days, 3 minutes ago
Context in IRC logs
Paste contents:
Raw Source | Display As
<script>

var wibble = {};
var z=wibble;
z=(z.bar)?z.bar:z.bar={};
alert(wibble.bar);
</script>

Annotation number 2: even further reduced
Pasted by: olliej
5 days, 23 hours ago
Context in IRC logs
Paste contents:
Raw Source | Display As

var wibble = {};
var z=wibble;
z=z.bar="wiffle";
print(wibble.bar);
print("z: " + z);

Colorize as:
Show Line Numbers
Index of paste annotations: 1 | 2

Ads absolutely not by Google

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.