Coder Social home page Coder Social logo

akepot's People

Contributors

pjjjv avatar

Watchers

 avatar  avatar

akepot's Issues

`<template if=` is not a guard

In admin edit mode, when removing all competences from a subcategory:

Exception: Uncaught Error: RangeError: index (0) must be in the range [0..0)
Stack Trace:
#0      List.[] (dart:core-patch/growable_array.dart:136)
#1      ObservableList.[] (package:observe/src/observable_list.dart:90:49)
#2      IndexObserver._updateSelf (package:polymer_expressions/eval.dart:754:27)
#3      ExpressionObserver._observe (package:polymer_expressions/eval.dart:315:16)
#4      ExpressionObserver._invalidate (package:polymer_expressions/eval.dart:296:13)
#5      IndexObserver._updateSelf.<anonymous closure> (package:polymer_expressions/eval.dart:759:65)
#6      _RootZone.runUnaryGuarded (dart:async/zone.dart:1093)
#7      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341)
#8      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:270)
#9      _SyncBroadcastStreamController._sendData.<anonymous closure> (dart:async/broadcast_stream_controller.dart:370)
#10     _BroadcastStreamController._forEachListener (dart:async/broadcast_stream_controller.dart:312)
#11     _SyncBroadcastStreamController._sendData (dart:async/broadcast_stream_controller.dart:369)
#12     _BroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:237)
#13     deliverListChanges (package:observe/src/observable_list.dart:265:23)
#14     _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
#15     _asyncRunCallback (dart:async/schedule_microtask.dart:48)
#16     _handleMutation (dart:html:42316)

Harmless exception.
This is because the polymer expression inside a template if is still executed and there is an OOB error because length = 0:

        <template if="{{ project.categories.length > category_nr }}">
          <section-edit-category category="{{project.categories[category_nr]}}" page="{{page}}" index="{{subcategory_nr}}"></section-edit-category>

More: Polymer/polymer#265

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.