Pressing the Shorten URL button in the devel playground yields a pop-up with a text box that contains "undefined". I assume it's supposed to contain a shortened URL, right?
Can be tested with this: http://demo.qooxdoo.org/devel/playground/#%7B%22code%22%3A%20%22function%2520bestSeam%28disruption%252C%2520lowestCost%252C%2520row%252C%2520col%252C%2520maxRow%252C%2520maxCol%29%250A%257B%250A%2520%2520%2520%2520%252F%252F%2520Have%2520we%2520already%2520discovered%2520the%2520lowest%2520cost%2520for%2520the%2520specified%2520row%252Fcol%253F%250A%2520%2520%2520%2520if%2520%28lowestCost%255Brow%255D%255Bcol%255D%2520!%253D%2520null%29%250A%2520%2520%2520%2520%257B%250A%2520%2520%2520%2520%2520%2520%2520%2520%252F%252F%2520Yup.%2520Just%2520give%2520it%2520to%2520them.%250A%2520%2520%2520%2520%2520%2520%2520%2520return%2520lowestCost%255Brow%255D%255Bcol%255D%253B%250A%2520%2520%2520%2520%257D%250A%250A%2520%2520%2520%2520%252F%252F%2520Are%2520we%2520already%2520on%2520the%2520last%2520row%253F%250A%2520%2520%2520%2520if%2520%28row%2520%253D%253D%2520maxRow%29%250A%2520%2520%2520%2520%257B%250A%2520%2520%2520%2520%2520%2520%2520%2520%252F%252F%2520Yup.%2520This%2520cell%2520itself%2520is%2520the%2520lowest-cost%2520option%250A%2520%2520%2520%2520%2520%2520%2520%2520lowestCost%255Brow%255D%255Bcol%255D%2520%253D%2520%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%257B%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520row%2520%2520%2520%2520%2520%2520%2520%2520%253A%2520row%252C%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520col%2520%2520%2520%2520%2520%2520%2520%2520%253A%2520col%252C%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520disruption%2520%253A%2520disruption%255Brow%255D%255Bcol%255D%252C%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520next%2520%2520%2520%2520%2520%2520%2520%253A%2520null%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%257D%253B%250A%2520%2520%2520%2520%2520%2520%2520%2520return%2520lowestCost%255Brow%255D%255Bcol%255D%253B%250A%2520%2520%2520%2520%257D%2520%2520%2520%2520%250A%250A%2520%2520%2520%2520%252F%252F%250A%2520%2520%2520%2520%252F%252F%2520find%2520the%2520cost%2520of%2520each%2520of%2520the%2520%28up%2520to%29%25203%2520relevant%2520columns%2520in%2520the%2520next%2520row%250A%2520%2520%2520%2520%252F%252F%250A%250A%2520%2520%2520%2520var%2520lowest%2520%253D%2520%257B%2520disruption%2520%253A%2520Number.MAX_VALUE%2520%257D%253B%250A%250A%2520%2520%2520%2520%252F%252F%2520Get%2520the%2520lowest%2520cost%2520for%2520one%2520of%2520the%2520cells%253A%250A%2520%2520%2520%2520%252F%252F%2520%2520%255Brow%252B1%252C%2520col-1%255D%252C%250A%2520%2520%2520%2520%252F%252F%2520%2520%255Brow%252B1%252C%2520col%255D%252C%250A%2520%2520%2520%2520%252F%252F%2520%2520%255Brow%252B1%252C%2520col%252B1%255D%250A%2520%2520%2520%2520for%2520%28var%2520j%2520%253D%2520col-1%253B%2520j%2520%253C%253D%2520col%252B1%253B%2520j%252B%252B%29%250A%2520%2520%2520%2520%257B%250A%2520%2520%2520%2520%2520%2520%2520%2520%252F%252F%2520Skip%2520columns%2520less%2520than%2520zero%2520or%2520greater%2520than%2520maxCol%250A%2520%2520%2520%2520%2520%2520%2520%2520if%2520%28j%2520%253C%25200%2520%257C%257C%2520j%2520%253E%2520maxCol%29%250A%2520%2520%2520%2520%2520%2520%2520%2520%257B%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520continue%253B%250A%2520%2520%2520%2520%2520%2520%2520%2520%257D%250A%2520%2520%2520%2520%2520%2520%2520%2520%250A%2520%2520%2520%2520%2520%2520%2520%2520%252F%252F%2520Try%2520this%2520seam%2520option%250A%2520%2520%2520%2520%2520%2520%2520%2520var%2520trySeam%2520%253D%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520bestSeam%28disruption%252C%2520lowestCost%252C%2520row%252B1%252C%2520j%252C%2520maxRow%252C%2520maxCol%29%253B%250A%2520%2520%2520%2520%2520%2520%2520%2520%250A%2520%2520%2520%2520%2520%2520%2520%2520%252F%252F%2520Did%2520it%2520have%2520a%2520lower%2520disruption%2520than%2520we%27ve%2520seen%2520before%253F%250A%2520%2520%2520%2520%2520%2520%2520%2520if%2520%28trySeam.disruption%2520%253C%2520lowest.disruption%29%250A%2520%2520%2520%2520%2520%2520%2520%2520%257B%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%252F%252F%2520Yup.%2520Save%2520this%2520one.%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520lowest%2520%253D%2520trySeam%253B%250A%2520%2520%2520%2520%2520%2520%2520%2520%257D%250A%2520%2520%2520%2520%257D%250A%250A%2520%2520%2520%2520%252F%252F%2520The%2520actual%2520cost%2520for%2520the%2520%255Brow%252Ccol%255D%2520cell%2520is%2520what%2520we%2520discovered%2520as%2520the%250A%2520%2520%2520%2520%252F%252F%2520lowest%2520choice%2520below%2520us%2520plus%2520our%2520own%2520disruption%2520value.%250A%2520%2520%2520%2520lowestCost%255Brow%255D%255Bcol%255D%2520%253D%2520%250A%2520%2520%2520%2520%2520%2520%2520%2520%257B%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520row%2520%2520%2520%2520%2520%2520%2520%2520%253A%2520row%252C%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520col%2520%2520%2520%2520%2520%2520%2520%2520%253A%2520col%252C%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520disruption%2520%253A%2520lowest.disruption%2520%252B%2520disruption%255Brow%255D%255Bcol%255D%252C%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520next%2520%2520%2520%2520%2520%2520%2520%253A%2520%257B%2520row%2520%253A%2520lowest.row%252C%2520col%2520%253A%2520lowest.col%2520%257D%250A%2520%2520%2520%2520%2520%2520%2520%2520%257D%253B%250A%250A%2520%2520%2520%2520%252F%252F%2520Return%2520the%2520cost%2520of%2520this%2520cell%2520and%2520everything%2520below%2520it%250A%2520%2520%2520%2520return%2520lowestCost%255Brow%255D%255Bcol%255D%253B%250A%257D%250A%250A%252F%252F%2520----------------------------------------------------------------------%2520%252F%252F%250A%250A%252F%252F%2520The%2520disruption%2520value%2520for%2520each%2520cell%2520of%2520the%2520pixel%2520array%250Avar%2520disruption%2520%253D%2520%250A%2520%2520%2520%2520%255B%250A%2520%2520%2520%2520%2520%2520%2520%2520%255B1%252C%25204%255D%252C%250A%2520%2520%2520%2520%2520%2520%2520%2520%255B2%252C%25204%255D%252C%250A%2520%2520%2520%2520%2520%2520%2520%2520%255B3%252C%25201%255D%252C%250A%2520%2520%2520%2520%2520%2520%2520%2520%255B4%252C%25202%255D%252C%250A%2520%2520%2520%2520%2520%2520%2520%2520%255B5%252C%25201%255D%250A%2520%2520%2520%2520%255D%253B%250A%250A%252F%252F%2520Determine%2520the%2520maximum%2520row%2520and%2520column%2520numbers%250Avar%2520maxRow%2520%253D%2520disruption.length%2520-%25201%253B%250Avar%2520maxCol%2520%253D%2520disruption%255B0%255D.length%2520-%25201%253B%250A%250A%252F%252F%2520The%2520calculated%2520lowest%2520cost%2520information%2520for%2520each%2520cell%2520of%2520the%2520pixel%2520array%250Avar%2520lowestCost%2520%253D%2520%255B%255D%253B%250A%250A%252F%252F%2520We%2520want%2520a%2520two-dimensional%2520array.%2520Initialize%2520the%2520rows%2520to%2520each%2520be%2520an%2520array.%250Afor%2520%28var%2520row%2520%253D%25200%253B%2520row%2520%253C%253D%2520maxRow%253B%2520row%252B%252B%29%250A%257B%250A%2520%2520%2520%2520lowestCost%255Brow%255D%2520%253D%2520%255B%255D%253B%250A%257D%250A%250A%250A%252F%252F%2520Track%2520the%2520lowest-cost%2520starting%2520column%250Avar%2520lowest%2520%253D%2520%257B%2520disruption%2520%253A%2520Number.MAX_VALUE%252C%2520next%2520%253A%2520null%2520%257D%253B%250A%250Afor%2520%28var%2520col%2520%253D%25200%253B%2520col%2520%253C%253D%2520maxCol%253B%2520col%252B%252B%29%250A%257B%250A%2520%2520%2520%2520%252F%252F%2520Try%2520this%2520seam%2520option%250A%2520%2520%2520%2520var%2520trySeam%2520%253D%2520bestSeam%28disruption%252C%2520lowestCost%252C%25200%252C%2520col%252C%2520maxRow%252C%2520maxCol%29%253B%250A%250A%2520%2520%2520%2520%252F%252F%2520Did%2520it%2520have%2520a%2520lower%2520disruption%2520than%2520we%27ve%2520seen%2520before%253F%250A%2520%2520%2520%2520if%2520%28trySeam.disruption%2520%253C%2520lowest.disruption%29%250A%2520%2520%2520%2520%257B%250A%2520%2520%2520%2520%2520%2520%2520%2520%252F%252F%2520Yup.%2520Save%2520this%2520one.%250A%2520%2520%2520%2520%2520%2520%2520%2520lowest%2520%253D%2520trySeam%253B%250A%2520%2520%2520%2520%257D%250A%257D%250A%250A%252F%252F%2520Build%2520the%2520displayed%2520result%2520here%250Avar%2520result%2520%253D%2520%255B%255D%253B%250A%250A%252F%252F%2520Display%2520the%2520lowest%2520cost%250Aresult.push%28%2522The%2520lowest%2520cost%2520seam%2520is%2520%2522%2520%252B%2520lowest.disruption%2520%252B%2520%2522%255Cn%2522%29%253B%250A%250A%252F%252F%2520Display%2520the%2520path%250Afor%2520%28var%2520cell%2520%253D%2520lowest%253B%2520%253B%2520cell%2520%253D%2520lowestCost%255Bcell.next.row%255D%255Bcell.next.col%255D%29%250A%257B%250A%2520%2520%2520%2520result.push%28%2522Cell%253A%2520%255B%2522%2520%252B%2520cell.row%2520%252B%2520%2522%252C%2520%2522%2520%252B%2520cell.col%2520%252B%2520%2522%255D%2522%2520%252B%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2522%2520at%2520a%2520cost%2520of%2520%2522%2520%252B%2520disruption%255Bcell.row%255D%255Bcell.col%255D%2520%252B%2520%2522%255Cn%2522%29%253B%250A%2520%2520%2520%2520if%2520%28cell.next%2520%253D%253D%2520null%29%250A%2520%2520%2520%2520%257B%250A%2520%2520%2520%2520%2520%2520%2520%2520break%253B%250A%2520%2520%2520%2520%257D%250A%257D%250Aalert%28result.join%28%2522%2522%29%29%253B%250A%22%7D
------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
