New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
identifier 'mdv.bindModel' cannot be resolved #12227
Comments
Or, I'm using an editor that is too old. It certainly doesn't work with the editor build from last week. |
But then I just tried Dart Editor version 0.1.2_r25759 (aka latest continual build) and still got the error. :( |
Removed Priority-Unassigned label. |
This comment was originally written by @zoechi The problem occured just after the update to 0.6.14 (0.6.13 worked fine) |
This comment was originally written by joh...@johnmccutchan.com This is new. I worked around it by commenting out the line in polymer_element.dart |
Hey everyone, sincere apologies on this. Apparently there was a miscommunication and the SDK was released before many features were tested. Here's what we're doing:
* moving Polymer package source code and tests into our main repository, so they are tested via the Dart build bots: http://buildbot.dartlang.org * changing web_ui's WebComponent class so it is not broken every time Node or Element changes in dart:html |
Set owner to @jmesserly. |
Thanks for the update! Really appreciate the fixes. |
fyi, fixes were landed -- pkgs just need to be uploaded Added Fixed label. |
Consider this code:
import 'dart:html';
import 'package:fancy_syntax/syntax.dart';
main() {
TemplateElement template = query('#tmpl');
template.bindingDelegate = new FancySyntax();
template.model = '11';
}
<!DOCTYPE html>
<html>
<head>
<title>index</title>
<script src="packages/polymer/boot.js"></script>
</head>
<body>
<polymer-element name="my-element" extends="div" attributes="volume">
<template>
<h1>Hello from the custom element. The volume is {{volume}}</h1>
</template>
<script type="application/dart">
import 'package:polymer/polymer.dart';
@CustomTag('my-element')
class MyElement extends PolymerElement with ObservableMixin {
@observable String volume;
}
</script>
</polymer-element>
<!-- How to set a custom attribute with a literal value?
Here I need to bind an object to a template first. I'd
rather just do volume="11". -->
<template id="tmpl" bind>
<my-element volume="{{}}"></my-element>
</template>
<script type="application/dart" src="index.dart"></script>
</body>
</html>
Gives this error:
Invalid CSS property name: -webkit-touch-callout
Internal error: 'package:polymer/polymer_element.dart': Error: line 140 pos 27: identifier 'mdv.bindModel' cannot be resolved
Timer.run(() => mdv.bindModel(root, this));
^
Using Dart Editor version 0.1.2_r25741
polymer:
description: polymer
source: hosted
version: "0.5.2+1"
(I'm probably using an editor that is too new.)
The text was updated successfully, but these errors were encountered: