Skip to content

Instantly share code, notes, and snippets.

@cdbkr
Created June 26, 2014 22:21
Show Gist options
  • Save cdbkr/7bed75e6892466daff8d to your computer and use it in GitHub Desktop.
Save cdbkr/7bed75e6892466daff8d to your computer and use it in GitHub Desktop.
polymer in webview issue
06-27 00:07:36.350: I/chromium(3877): [INFO:CONSOLE(13)] "Uncaught TypeError: undefined is not a function", source: file:///android_asset/components/platform/platform.js (13)
06-27 00:07:36.360: I/chromium(3877): [INFO:CONSOLE(13)] "Uncaught TypeError: undefined is not a function", source: file:///android_asset/components/platform/platform.js (13)
06-27 00:07:36.360: I/chromium(3877): [INFO:CONSOLE(13)] "Uncaught TypeError: undefined is not a function", source: file:///android_asset/components/platform/platform.js (13)
06-27 00:07:36.390: I/chromium(3877): [INFO:CONSOLE(12)] "Exception caught during observer callback: TypeError: undefined is not a function
06-27 00:07:36.390: I/chromium(3877): at b.classList (file:///android_asset/components/platform/platform.js:13:20941)
06-27 00:07:36.390: I/chromium(3877): at Polymer.selectedIndexChanged (data:text/javascript;base64,CgogIFBvbHltZXIoJ3BhcGVyLXRhYnMnLCB7CiAgICAKICAgIC8qKgogICAgICogSWYgdHJ1ZSwgaW5rIGVmZmVjdCBpcyBkaXNhYmxlZC4KICAgICAqCiAgICAgKiBAYXR0cmlidXRlIG5vaW5rCiAgICAgKiBAdHlwZSBib29sZWFuCiAgICAgKiBAZGVmYXVsdCBmYWxzZQogICAgICovCiAgICBub2luazogZmFsc2UsCiAgICAKICAgIC8qKgogICAgICogSWYgdHJ1ZSwgdGhlIGJvdHRvbSBiYXIgdG8gaW5kaWNhdGUgdGhlIHNlbGVjdGVkIHRhYiB3aWxsIG5vdCBiZSBzaG93bi4KICAgICAqCiAgICAgKiBAYXR0cmlidXRlIG5vYmFyCiAgICAgKiBAdHlwZSBib29sZWFuCiAgICAgKiBAZGVmYXVsdCBmYWxzZQogICAgICovCiAgICBub2JhcjogZmFsc2UsCiAgICAKICAgIGFjdGl2YXRlRXZlbnQ6ICdkb3duJ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ICAgICAgaWYgKGNsLmNvbnRhaW5zKCdleHBhbmQnKSkgewogICAgICAgIGNsLnJlbW92ZSgnZXhwYW5kJyk7CiAgICAgICAgY2wuYWRkKCdjb250cmFjdCcpOwogICAgICAgIHZhciBzID0gdGhpcy4kLnNlbGVjdGlvbkJhci5zdHlsZTsKICAgICAgICB2YXIgdyA9IDEwMCAvIHRoaXMuaXRlbXMubGVuZ3RoOwogICAgICAgIHMud2lkdGggPSB3ICsgJyUnOwogICAgICAgIHMubGVmdCA9IHRoaXMuc2VsZWN0ZWRJbmRleCAqIHcgKyAnJSc7CiAgICAgIH0gZWxzZSBpZiAoY2wuY29udGFpbnMoJ2NvbnRyYWN0JykpIHsKICAgICAgICBjbC5yZW1vdmUoJ2NvbnRyYWN0Jyk7CiAgICAgIH0KICAgIH0KICAgIAogIH0pOwogIAoKLy8jIHNvdXJjZVVSTD1maWxlOi8vL2FuZHJvaWRfYXNzZXQvY29tcG9uZW50cy9wYXBlci10YWJzL3BhcGVyLXRhYnMuaHRtbC9wYXBlci10YWJzLmpzCg==:45:26)
06-27 00:07:36.390: I/chromium(3877): at e.invokeMethod (file:///android_asset/components/polymer/polymer.js:12:10242)
06-27 00:07:36.390: I/chromium(3877): at e.notifyPropertyChanges (file:///android_asset/components/polymer/polymer.js:12:9459)
06-27 00:07:36.390: I/chromium(3877): at Object.Observer.report_ (file:///android_asset/components/platform/platform.js:12:12892)
06-27 00:07:36.390: I/chromium(3877): at Object.createObject.check_ (file:///android_asset/components/platform/platform.js:12:18385)
06-27 00:07:36.390: I/chromium(3877): at Object.global.Platform.performMicrotaskCheckpoint (file:///android_asset/components/platform/platform.js:12:13792)
06-27 00:07:36.390: I/chromium(3877): at file:///android_asset/components/platform/platform.js:16:24471
06-27 00:07:36.390: I/chromium(3877): at Object.c [as callback_] (file:///android_asset/components/platform/platform.js:15:9547)
06-27 00:07:36.390: I/chromium(3877): at c (file:///android_asset/components/platform/platform.js:12:27047)", source: file:///android_asset/components/platform/platform.js (12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment