cmtsang07 / blockly

Automatically exported from code.google.com/p/blockly
0 stars 0 forks source link

Can't add preset comment while define a new block #83

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

We can use this.setOutput, this.setTooltip to create a language block, such as 

{{{
Blockly.Language.variables_get = {
  // Variable getter.
  category: null,  // Variables are handled specially.
  helpUrl: Blockly.LANG_VARIABLES_GET_HELPURL,
  init: function() {
    this.setColour(330);
    this.appendDummyInput("")
        .appendTitle(Blockly.LANG_VARIABLES_GET_TITLE_1)
        .appendTitle(new Blockly.FieldVariable(
        Blockly.LANG_VARIABLES_GET_ITEM), 'VAR');
    this.setOutput(true, null);
    this.setTooltip(Blockly.LANG_VARIABLES_GET_TOOLTIP_1);
}}}

but add additional this.setCommentText("some text"); statement(that also 
defined in block.js) will cause

 'Uncaught TypeError: Cannot call method 'appendChild' of null '

error in comment.js with line:

 'this.block_.getSvgRoot().appendChild(this.iconGroup_);' 

Seems the object is not properly referenced.

What is the expected output? What do you see instead?

Able to add preset comment while define a new block.

Original issue reported on code.google.com by gasolin on 22 Oct 2012 at 2:27

GoogleCodeExporter commented 8 years ago

Original comment by gasolin on 22 Oct 2012 at 7:22

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
<a href="http://www.chanelhandbags.net.co/">chanel bags</a>, 
http://www.chanelhandbags.net.co/<br>
<a href="http://www.chiflatiron.net.co/">flat iron</a>, 
http://www.chiflatiron.net.co/<br>
<a href="http://www.converse.net.co/">converse shoes</a>, 
http://www.converse.net.co/<br>
<a href="http://www.ferragamo.com.co/">ferragamo outlet</a>, 
http://www.ferragamo.com.co/<br>
<a href="http://www.guccihandbags.com.co/">gucci belt</a>, 
http://www.guccihandbags.com.co/<br>
<a href="http://www.hollister.us.org/">hollister kids</a>, 
http://www.hollister.us.org/<br>
<a href="http://www.insanityworkout.net.co/">insanity workout calendar</a>, 
http://www.insanityworkout.net.co/<br>
<a href="http://www.jimmychoo.net.co/">jimmy choo shoes</a>, 
http://www.jimmychoo.net.co/<br>
<a href="http://www.jordan-shoes.com.co/">air jordan shoes</a>, 
http://www.jordan-shoes.com.co/<br>
<a href="http://www.juicycouture.com.co/">juicy couture</a>, 
http://www.juicycouture.com.co/<br>
<a href="http://www.juicycoutureoutlet.net.co/">juicy couture outlet</a>, 
http://www.juicycoutureoutlet.net.co/<br>
<a href="http://www.kate-spade.com.co/">kate spade</a>, 
http://www.kate-spade.com.co/<br>
<a href="http://www.katespade-outlet.com.co/">katespade</a>, 
http://www.katespade-outlet.com.co/<br>
<a href="http://www.louisvuitton-outlet.com.co/">louis vuitton outlet</a>, 
http://www.louisvuitton-outlet.com.co/<br>
<a href="http://www.michael-kors.us.org/">michael kors outlet online</a>, 
http://www.michael-kors.us.org/<br>
<a href="http://www.michael-kors-handbags.us.com/">michael kors</a>, 
http://www.michael-kors-handbags.us.com/<br>
<a href="http://www.michael-kors-outlet.us.org/">michael kors purses</a>, 
http://www.michael-kors-outlet.us.org/<br>
<a href="http://www.michael-kors-outlet-online.us.org/">michael kors</a>, 
http://www.michael-kors-outlet-online.us.org/<br>
<a href="http://www.michaelkorsoutletonline-sale.us.com/">michael kors outlet 
online sale</a>, http://www.michaelkorsoutletonline-sale.us.com/<br>
<a href="http://www.northface.us.org/">north face jackets</a>, 
http://www.northface.us.org/<br>
<a href="http://www.oakley-sunglasses.us.org/">oakley outlet</a>, 
http://www.oakley-sunglasses.us.org/<br>
<a href="http://www.pandorajewelry.com.co/">pandora charms</a>, 
http://www.pandorajewelry.com.co/<br>
<a href="http://www.pradahandbags.com.co/">prada outlet</a>, 
http://www.pradahandbags.com.co/<br>
<a href="http://www.pradashoes.com.co/">prada shoes for men</a>, 
http://www.pradashoes.com.co/<br>
<a href="http://www.ray-ban-outlet.us.com/">ray-ban</a>, 
http://www.ray-ban-outlet.us.com/<br>
<a href="http://www.rayban-sunglasses.us.org/">ray ban sunglasses outlet</a>, 
http://www.rayban-sunglasses.us.org/<br>
<a href="http://www.replicawatches.us.com/">rolex watches</a>, 
http://www.replicawatches.us.com/<br>
<a href="http://www.swarovskicrystal.com.co/">swarovski outlet</a>, 
http://www.swarovskicrystal.com.co/<br>
<a href="http://www.thenorthface.us.org/">the north face outlet</a>, 
http://www.thenorthface.us.org/<br>
<a href="http://www.tiffanyandco.net.co/">tiffany jewelry</a>, 
http://www.tiffanyandco.net.co/<br>
<a href="http://www.tiffanyjewelry.us.org/">tiffany co</a>, 
http://www.tiffanyjewelry.us.org/<br>
<a href="http://www.true-religion.com.co/">true religion jeans outlet</a>, 
http://www.true-religion.com.co/<br>
<a href="http://www.truereligionjeans.net.co/">true religion outlet</a>, 
http://www.truereligionjeans.net.co/<br>
<a href="http://www.uggaustralia.net.co/">ugg boots</a>, 
http://www.uggaustralia.net.co/<br>
<a href="http://www.uggboots.net.co/">uggs outlet</a>, 
http://www.uggboots.net.co/<br>
<a href="http://www.uggbootsclearance.com.co/">ugg australia</a>, 
http://www.uggbootsclearance.com.co/<br>
<a href="http://www.uggsonsale.com.co/">ugg</a>, 
http://www.uggsonsale.com.co/<br>
<a href="http://www.uggsoutlet.com.co/">ugg boots clearance</a>, 
http://www.uggsoutlet.com.co/<br>
<a href="http://www.cheap-oakleysunglasses.in.net/">cheap oakley</a>, 
http://www.cheap-oakleysunglasses.in.net/<br>
<a href="http://www.oakleysunglassescheap.in.net/">oakley vault</a>, 
http://www.oakleysunglassescheap.in.net/<br>
<a href="http://www.ralphlaurenoutletonline.in.net/">ralph lauren outlet 
online</a>, http://www.ralphlaurenoutletonline.in.net/<br>
<a href="http://www.ralphlauren--outlet.in.net/">ralph lauren outlet</a>, 
http://www.ralphlauren--outlet.in.net/<br>
<a href="http://www.burberryoutlet--online.in.net/">burberry.com</a>, 
http://www.burberryoutlet--online.in.net/<br>
<a href="http://www.tomshoes.in.net/">toms shoes</a>, 
http://www.tomshoes.in.net/<br>
<a href="http://www.toms-outlet.in.net/">toms outlet</a>, 
http://www.toms-outlet.in.net/<br>
<a href="http://www.christianlouboutin.in.net/">christian louboutin shoes</a>, 
http://www.christianlouboutin.in.net/<br>
<a href="http://www.tory-burch-outlet.in.net/">tory burch handbags</a>, 
http://www.tory-burch-outlet.in.net/<br>
<a href="http://www.gucci-outlet.in.net/">gucci belt</a>, 
http://www.gucci-outlet.in.net/<br>
<a href="http://www.longchamphandbagsoutlet.in.net/">longchamp bags</a>, 
http://www.longchamphandbagsoutlet.in.net/<br>
<a href="http://www.abercrombie-kids.in.net/">abercrombie.com</a>, 
http://www.abercrombie-kids.in.net/<br>
<a href="http://www.hollisterclothing-store.in.net/">hollister</a>, 
http://www.hollisterclothing-store.in.net/<br>
<a href="http://www.hermes.in.net/">hermes birkin bag</a>, 
http://www.hermes.in.net/<br>
<a href="http://www.cheapjerseys.in.net/">cheap nfl jerseys</a>, 
http://www.cheapjerseys.in.net/<br>
<a href="http://www.beats-by-dre.in.net/">beats headphones</a>, 
http://www.beats-by-dre.in.net/<br>
<a href="http://www.beatsheadphones.in.net/">beats by dr dre</a>, 
http://www.beatsheadphones.in.net/<br>
<a href="http://www.ghdhairstraightener.in.net/">hair straightener</a>, 
http://www.ghdhairstraightener.in.net/<br>
<a href="http://www.rayban-sunglasses.org.uk/">ray ban sunglasses</a>, 
http://www.rayban-sunglasses.org.uk/<br>
<a href="http://www.michaelkors-uk.org.uk/">michael kors bags</a>, 
http://www.michaelkors-uk.org.uk/<br>
<a href="http://www.michaelkorshandbags.org.uk/">michael kors uk</a>, 
http://www.michaelkorshandbags.org.uk/<br>
<a href="http://www.louis--vuitton.org.uk/">louis vuitton outlet</a>, 
http://www.louis--vuitton.org.uk/<br>
<a href="http://www.ralphlauren-outlet.org.uk/">ralph lauren outlet</a>, 
http://www.ralphlauren-outlet.org.uk/<br>
<a href="http://www.nikefree-run.org.uk/">nike running</a>, 
http://www.nikefree-run.org.uk/<br>
<a href="http://www.rolex-watches.me.uk/">omega watches</a>, 
http://www.rolex-watches.me.uk/<br>
<a href="http://www.weddingdressesuk.org.uk/">dresses for weddings</a>, 
http://www.weddingdressesuk.org.uk/<br>
<a href="http://www.pandora-charms.org.uk/">pandora sale</a>, 
http://www.pandora-charms.org.uk/<br>
<a href="http://www.thomassabo-uk.org.uk/">thomas sabo</a>, 
http://www.thomassabo-uk.org.uk/<br>
<a href="http://www.swarovski-uk.org.uk/">swarovski</a>, 
http://www.swarovski-uk.org.uk/<br>
<a href="http://www.christianlouboutin.org.uk/">christian louboutin</a>, 
http://www.christianlouboutin.org.uk/<br>
<a href="http://www.air-huarache.co.uk/">air huarache</a>, 
http://www.air-huarache.co.uk/<br>
<a href="http://www.rosherun.org.uk/">roshe run</a>, 
http://www.rosherun.org.uk/<br>
<a href="http://www.thenorth-face.org.uk/">north face uk</a>, 
http://www.thenorth-face.org.uk/<br>
<a href="http://www.louis--vuitton.ca/">louis vuitton canada</a>, 
http://www.louis--vuitton.ca/<br>
<a href="http://www.airjordans.us/">jordan shoes</a>, 
http://www.airjordans.us/<br>
<a href="http://www.jordanretro.org/">air jordan</a>, 
http://www.jordanretro.org/<br>
<a href="http://www.cheap-jordans.net/">air jordan retro</a>, 
http://www.cheap-jordans.net/<br>
<a href="http://www.nikefactory.org/">nike outlet</a>, 
http://www.nikefactory.org/<br>
<a href="http://www.nikestore.us/">cheap nike shoes</a>, 
http://www.nikestore.us/<br>
<a href="http://www.cheap-nikeshoes.com/">nike sneakers</a>, 
http://www.cheap-nikeshoes.com/<br>
<a href="http://www.nike-air-max.us/">air max 2015</a>, 
http://www.nike-air-max.us/<br>
<a href="http://www.airmax-2015.org/">nike air max 2014</a>, 
http://www.airmax-2015.org/<br>
<a href="http://www.airmax-90.org/">nike air max 2015</a>, 
http://www.airmax-90.org/<br>
<a href="http://www.nikefree-run.net/">nike free</a>, 
http://www.nikefree-run.net/<br>
<a href="http://www.nikefree5.net/">nike running shoes</a>, 
http://www.nikefree5.net/<br>
<a href="http://www.suprashoe.net/">supra shoes</a>, 
http://www.suprashoe.net/<br>
<a href="http://www.newbalance-outlet.org/">new balance</a>, 
http://www.newbalance-outlet.org/<br>
<a href="http://www.montblanc--pens.net/">mont blanc</a>, 
http://www.montblanc--pens.net/<br>
<a href="http://www.ferragamoshoes.net/">salvatore ferragamo outlet</a>, 
http://www.ferragamoshoes.net/<br>
<a href="http://www.mcm-bags.net/">mcm bags</a>, http://www.mcm-bags.net/<br>
<a href="http://www.bottega.us/">bottega</a>, http://www.bottega.us/<br>
<a href="http://www.nikemercurial.net/">nike mercurial</a>, 
http://www.nikemercurial.net/<br>
<a href="http://www.celinebags.org/">celine bags</a>, 
http://www.celinebags.org/<br>
<a href="http://www.rosheruns.us/">roshe runs</a>, http://www.rosheruns.us/<br>
<a href="http://www.nikerosherun.us/">roshe run</a>, 
http://www.nikerosherun.us/<br>
<a href="http://www.vansshoes.us/">vans shoes</a>, http://www.vansshoes.us/<br>
<a href="http://www.timberland-shoes.com/">timberland outlet</a>, 
http://www.timberland-shoes.com/<br>
<a href="http://www.iphone-cases.us/">iphone 4s cases</a>, 
http://www.iphone-cases.us/<br>
<a href="http://www.softball-bats.us/">softball bats</a>, 
http://www.softball-bats.us/<br>
<a href="http://www.babyliss-pro.net/">babyliss pro</a>, 
http://www.babyliss-pro.net/<br>
<a href="http://www.louisvuitton-outlets.us/">louis vuitton handbags</a>, 
http://www.louisvuitton-outlets.us/<br>
<a href="http://www.burberry-outlet.jp.net/">burberry outlet</a>, 
http://www.burberry-outlet.jp.net/<br>
<a href="http://www.louboutin.jp.net/">louboutin</a>, 
http://www.louboutin.jp.net/<br>
<a href="http://www.christianlouboutinshoes.jp.net/">christian louboutin 
shoes</a>, http://www.christianlouboutinshoes.jp.net/<br>
<a href="http://www.louisvuitton.jp.net/">louis vuitton outlet stores</a>, 
http://www.louisvuitton.jp.net/<br>
<a href="http://www.official-pradaoutlet.com/">prada outlet</a>, 
http://www.official-pradaoutlet.com/<br>
<a href="http://www.michaelkorsclance.com/">michael kors outlet online 
sale</a>, http://www.michaelkorsclance.com/<br>
<a href="http://www.official-michaelkorsonline.com/">michael kors handbags</a>, 
http://www.official-michaelkorsonline.com/<br>
<a href="http://www.tommyhilfiger.in.net/">tommy hilfiger polos</a>, 
http://www.tommyhilfiger.in.net/<br>
<a href="http://www.mcmworldwide.ca/">mcm handbags</a>, 
http://www.mcmworldwide.ca/<br>
<a href="http://www.mmoncler-outlet.com/">moncler outlet</a>, 
http://www.mmoncler-outlet.com/<br>
<a href="http://www.kate-spades.com/">kate spade sale</a>, 
http://www.kate-spades.com/<br>
<a href="http://www.barbour-factory.com/">barbour quilted jacket</a>, 
http://www.barbour-factory.com/<br>
<a href="http://www.salvatoreferragamo.in.net/">salvatore ferragamo shoes</a>, 
http://www.salvatoreferragamo.in.net/<br>
<a href="http://www.canada-gooser.com/">canada goose outlet</a>, 
http://www.canada-gooser.com/<br>
<a href="http://www.louisvuittonas.com/">louis vuitton outlet online</a>, 
http://www.louisvuittonas.com/<br>
<a href="http://www.burberry-outlet2015.com/">burberry outlet</a>, 
http://www.burberry-outlet2015.com/<br>
<a href="http://www.fashion-clothing.us.com/">hollister clothes</a>, 
http://www.fashion-clothing.us.com/<br>
<a href="http://www.thenorthface.so/">north face outlet online</a>, 
http://www.thenorthface.so/<br>
<a href="http://www.barbour-jacketsoutlet.com/">barbour jackets</a>, 
http://www.barbour-jacketsoutlet.com/<br>
<a href="http://www.thenorthfacejackets.in.net/">north face jackets outlet</a>, 
http://www.thenorthfacejackets.in.net/<br>
<a href="http://www.northclearance.com/">north face jackets women</a>, 
http://www.northclearance.com/<br>
<a href="http://www.burberry-factory.org/">burberry</a>, 
http://www.burberry-factory.org/<br>
<a href="http://www.ralph-lauren.org.uk/">polo ralph lauren outlet online</a>, 
http://www.ralph-lauren.org.uk/<br>
<a href="http://www.polo-outlets.com/">ralph lauren outlet</a>, 
http://www.polo-outlets.com/<br>
<a href="http://www.ralphlaurenpolo.in.net/">ralph lauren outlet online</a>, 
http://www.ralphlaurenpolo.in.net/<br>
<a href="http://www.monsterbeatsbydres.net/">beats by dre outlet</a>, 
http://www.monsterbeatsbydres.net/<br>
<a href="http://www.louis-vuittonblackfriday.com/">louis vuitton outlet 
online</a>, http://www.louis-vuittonblackfriday.com/<br>
<a href="http://www.lv-guccishoesfactory.com/">gucci outlet</a>, 
http://www.lv-guccishoesfactory.com/<br>
<a href="http://www.longchampsoutlet.com/">longchamp outlet</a>, 
http://www.longchampsoutlet.com/<br>
<a href="http://www.moncler-clearance.com/">moncler clearance</a>, 
http://www.moncler-clearance.com/<br>
<a href="http://www.ralphlaurentshirts.com/">ralph lauren shirts</a>, 
http://www.ralphlaurentshirts.com/<br>
<a href="http://www.usahanbags.com/">hermes handbags</a>, 
http://www.usahanbags.com/<br>
<a href="http://www.beatsbydreoutlet.net/">beats by dre outlet</a>, 
http://www.beatsbydreoutlet.net/<br>
<a href="http://www.coach-blackfriday2014.com/">coach factory outlet 
online</a>, http://www.coach-blackfriday2014.com/<br>
<a href="http://www.coachccoachoutlet.com/">coachfactory.com/shop</a>, 
http://www.coachccoachoutlet.com/<br>
<a href="http://www.coach-clearance.com/">coachoutlet.com</a>, 
http://www.coach-clearance.com/<br>
<a href="http://www.michaelkorsbags.us.org/">michael kors outlet</a>, 
http://www.michaelkorsbags.us.org/<br>
<a href="http://www.coach-factories.net/">coachfactory.com</a>, 
http://www.coach-factories.net/<br>
<a href="http://www.oakley.so/">oakley vault</a>, http://www.oakley.so/<br>
<a href="http://www.hermes-outletonline.com/">hermes bags</a>, 
http://www.hermes-outletonline.com/<br>
<a href="http://www.marcjacobsonsale.com/">marc jacobs bags sale</a>, 
http://www.marcjacobsonsale.com/<br>
<a href="http://www.nike-jordanshoes.com/">nike air max</a>, 
http://www.nike-jordanshoes.com/<br>
<a href="http://www.woolrich-clearance.com/">woolrich clearance</a>, 
http://www.woolrich-clearance.com/<br>
<a href="http://www.coachoutletew.com/">coach outlet store</a>, 
http://www.coachoutletew.com/<br>
<a href="http://www.coachoutlet.so/">coach bags outlet</a>, 
http://www.coachoutlet.so/<br>
<a href="http://www.coachoutletrusa.com/">coach handbags outlet</a>, 
http://www.coachoutletrusa.com/<br>
<a href="http://www.guccishoes-uk.com/">gucci sale</a>, 
http://www.guccishoes-uk.com/<br>
<a href="http://www.official-coachoutlets.com/">coach outlet online</a>, 
http://www.official-coachoutlets.com/<br>
<a href="http://www.michaelkors.so/">michael kors outlet store</a>, 
http://www.michaelkors.so/<br>
<a href="http://www.guccifactorys.com/">gucci handbags</a>, 
http://www.guccifactorys.com/<br>
<a href="http://www.the-northface.in.net/">the north face outlet</a>, 
http://www.the-northface.in.net/<br>
<a href="http://www.cheapuggboots.eu.com/">ugg boots clearance</a>, 
http://www.cheapuggboots.eu.com/<br>
<a href="http://www.tory-burchoutlet.us.com">tory burch handbags</a>, 
http://www.tory-burchoutlet.us.com<br>
<a href="http://www.tommy-hilfigeroutlet.com/">tommy hilfiger coupons</a>, 
http://www.tommy-hilfigeroutlet.com/<br>
<a href="http://www.uggboots.so/">uggs outlet</a>, http://www.uggboots.so/<br>
<a href="http://www.louisvuitton.so/">louis vuitton outlet</a>, 
http://www.louisvuitton.so/<br>
<a href="http://www.calvin-kleins.com/">calvin kleins outlet</a>, 
http://www.calvin-kleins.com/<br>
<a href="http://www.cheap-christianlouboutinshoes.com/">christian 
louboutin</a>, http://www.cheap-christianlouboutinshoes.com/<br>
<a href="http://www.airjordanshoes2015.com/">jordan retro</a>, 
http://www.airjordanshoes2015.com/<br>
<a href="http://www.burberry.eu.com/">burberry outlet</a>, 
http://www.burberry.eu.com/<br>
<a href="http://www.abercrombiee.com/">abercrombie fitch</a>, 
http://www.abercrombiee.com/

Original comment by wenglipi...@gmail.com on 25 Apr 2015 at 12:25