akepot's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.