diff --git a/bower.json b/bower.json index c4f36f6c16..41962a40d4 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "polymer", - "version": "1.8.0", + "version": "1.8.1", "main": [ "polymer.html", "polymer-mini.html", diff --git a/build.log b/build.log index 5fd6529f69..b19c827bff 100644 --- a/build.log +++ b/build.log @@ -1,33 +1,33 @@ BUILD LOG --------- -Build Time: 2017-02-06T16:13:42-0800 +Build Time: 2017-02-27T14:14:04-0800 NODEJS INFORMATION ================== -nodejs: v6.9.3 +nodejs: v7.6.0 abbrev: 1.0.9 +accepts: 1.3.3 accessibility-developer-tools: 2.11.0 acorn: 4.0.3 acorn-jsx: 3.0.1 adm-zip: 0.4.7 -accepts: 1.3.3 after: 0.8.2 +agent-base: 2.0.1 ajv: 4.10.0 ajv-keywords: 1.2.0 -agent-base: 2.0.1 +align-text: 0.1.4 amdefine: 1.0.1 ansi-cyan: 0.1.1 ansi-escapes: 1.4.0 ansi-red: 0.1.1 ansi-regex: 2.0.0 ansi-styles: 2.2.1 -align-text: 0.1.4 -ansi-wrap: 0.1.0 append-field: 0.1.0 -archy: 1.0.0 archiver: 0.14.4 -arr-diff: 2.0.0 +ansi-wrap: 0.1.0 +archy: 1.0.0 argparse: 1.0.9 +arr-diff: 2.0.0 arr-flatten: 1.0.1 arr-union: 2.1.0 array-differ: 1.0.0 @@ -37,21 +37,21 @@ array-slice: 0.2.3 array-union: 1.0.2 array-uniq: 1.0.3 array-unique: 0.2.1 -arraybuffer.slice: 0.0.6 arrify: 1.0.1 +arraybuffer.slice: 0.0.6 asap: 2.0.5 asn1: 0.1.11 assert-plus: 0.1.5 assertion-error: 1.0.2 async: 0.9.2 -aws-sign2: 0.5.0 asynckit: 0.4.0 +aws-sign2: 0.5.0 aws4: 1.5.0 +babel-code-frame: 6.20.0 babel-polyfill: 6.20.0 babel-runtime: 6.20.0 backo2: 1.0.2 backoff: 2.5.0 -babel-code-frame: 6.20.0 balanced-match: 0.4.2 base64-arraybuffer: 0.1.5 base64id: 1.0.0 @@ -60,49 +60,49 @@ bcrypt-pbkdf: 1.0.0 beeper: 1.1.1 better-assert: 1.0.2 binaryextensions: 1.0.1 -bluebird: 2.11.0 blob: 0.0.4 -body-parser: 1.15.2 bl: 0.9.5 +bluebird: 2.11.0 +body-parser: 1.15.2 boom: 0.4.2 -brace-expansion: 1.1.6 boxen: 0.3.1 +brace-expansion: 1.1.6 braces: 1.8.5 -buffer-crc32: 0.2.13 browserstack: 1.5.0 -bufferstreams: 1.1.1 +buffer-crc32: 0.2.13 buffer-shims: 1.0.0 -bunyan: 1.8.5 +bufferstreams: 1.1.1 builtin-modules: 1.1.1 +bunyan: 1.8.5 busboy: 0.2.13 bytes: 2.4.0 -callsite: 1.0.0 caller-path: 0.1.0 +callsite: 1.0.0 callsites: 0.2.0 -camelcase: 2.1.1 camelcase-keys: 2.1.0 +camelcase: 2.1.1 capture-stack-trace: 1.0.0 +caseless: 0.8.0 center-align: 0.1.3 chai: 3.5.0 chalk: 1.1.3 -caseless: 0.8.0 circular-json: 0.3.1 cleankill: 1.0.3 cli-cursor: 1.0.2 +cli-width: 2.1.0 +cliui: 2.1.0 clone: 1.0.2 clone-stats: 0.0.1 co: 4.6.0 code-point-at: 1.1.0 -cliui: 2.1.0 -cli-width: 2.1.0 combined-stream: 0.0.7 commander: 2.3.0 +component-bind: 1.0.0 component-emitter: 1.1.2 component-inherit: 0.0.3 -component-bind: 1.0.0 +compress-commons: 0.2.9 concat-map: 0.0.1 concat-stream: 1.5.2 -compress-commons: 0.2.9 configstore: 2.1.0 content-disposition: 0.5.1 content-type: 1.0.2 @@ -116,6 +116,7 @@ create-error-class: 3.0.2 cryptiles: 0.2.2 csv: 0.4.6 csv-generate: 0.0.6 +csv-parse: 1.1.7 csv-stringify: 0.0.8 ctype: 0.5.3 currently-unhandled: 0.4.1 @@ -124,10 +125,10 @@ dashdash: 1.14.1 dateformat: 1.0.12 debug: 2.4.1 debuglog: 1.0.1 -csv-parse: 1.1.7 +decamelize: 1.2.0 deep-eql: 0.1.3 deep-extend: 0.4.1 -decamelize: 1.2.0 +deep-is: 0.1.3 defaults: 1.0.3 del: 2.2.2 delayed-stream: 0.0.5 @@ -138,102 +139,101 @@ detect-file: 0.1.0 dezalgo: 1.0.3 dicer: 0.2.5 diff: 1.4.0 -deep-is: 0.1.3 doctrine: 1.5.0 +dom-serializer: 0.1.0 dom5: 1.3.6 domelementtype: 1.3.0 domhandler: 2.3.0 -dom-serializer: 0.1.0 domutils: 1.5.1 -dtrace-provider: 0.6.0 +dot-prop: 3.0.0 duplexer: 0.1.1 +dtrace-provider: 0.6.0 duplexer2: 0.0.2 -dot-prop: 3.0.0 -ee-first: 1.1.1 ecc-jsbn: 0.1.1 encodeurl: 1.0.1 +ee-first: 1.1.1 end-of-stream: 0.1.5 engine.io: 1.8.2 engine.io-parser: 1.3.2 -entities: 1.1.1 engine.io-client: 1.8.2 -es5-ext: 0.10.12 +entities: 1.1.1 error-ex: 1.3.0 +es5-ext: 0.10.12 +es6-iterator: 2.0.0 es6-map: 0.1.4 es6-promise: 2.3.0 -es6-iterator: 2.0.0 +es6-set: 0.1.4 es6-symbol: 3.1.0 es6-weak-map: 2.0.1 -escape-html: 1.0.3 escape-regexp-component: 1.0.2 +escape-html: 1.0.3 escape-string-regexp: 1.0.5 -escodegen: 1.8.1 -es6-set: 0.1.4 escope: 3.6.0 -eslint: 3.12.1 +escodegen: 1.8.1 eslint-plugin-html: 1.7.0 +eslint: 3.12.1 espree: 3.3.2 -estraverse: 4.2.0 +esprima: 2.7.3 esrecurse: 4.1.0 +estraverse: 4.2.0 esutils: 2.0.2 etag: 1.7.0 event-emitter: 0.3.4 exit-hook: 1.1.1 -esprima: 2.7.3 expand-brackets: 0.1.5 expand-range: 1.8.2 expand-tilde: 1.2.2 +express: 4.14.0 extend: 3.0.0 extend-shallow: 1.1.4 extglob: 0.3.2 extsprintf: 1.2.0 -express: 4.14.0 fancy-log: 1.2.0 -fd-slicer: 1.0.1 fast-levenshtein: 2.0.5 +fd-slicer: 1.0.1 figures: 1.7.0 file-entry-cache: 2.0.0 filename-regex: 2.0.0 fill-range: 2.2.3 filled-array: 1.1.0 finalhandler: 0.5.0 -find-up: 1.1.2 find-index: 0.1.1 +find-up: 1.1.2 findup-sync: 0.4.3 -first-chunk-stream: 1.0.0 fined: 1.0.2 -for-in: 0.1.6 -flat-cache: 1.2.1 +first-chunk-stream: 1.0.0 flagged-respawn: 0.3.2 -for-own: 0.1.4 +flat-cache: 1.2.1 forever-agent: 0.5.2 +for-in: 0.1.6 +for-own: 0.1.4 +form-data: 0.2.0 formatio: 1.1.1 formidable: 1.0.17 -forwarded: 0.1.0 freeport: 1.0.5 fresh: 0.3.0 -fs-exists-sync: 0.1.0 fs.realpath: 1.0.0 +forwarded: 0.1.0 gaze: 0.5.2 generate-function: 2.0.0 generate-object-property: 1.2.0 +fs-exists-sync: 0.1.0 get-stdin: 4.0.1 getpass: 0.1.6 github-url-from-git: 1.5.0 github-url-from-username-repo: 1.0.2 -glob-base: 0.3.0 glob: 7.1.1 -glob-parent: 2.0.0 -form-data: 0.2.0 +glob-base: 0.3.0 glob-stream: 3.1.18 +glob-parent: 2.0.0 glob2base: 0.0.12 glob-watcher: 0.0.6 global-modules: 0.2.3 -globals: 9.14.0 global-prefix: 0.1.5 +globals: 9.14.0 globby: 5.0.0 -glogg: 1.0.0 globule: 0.1.0 +glogg: 1.0.0 got: 5.7.1 graceful-fs: 4.1.11 graceful-readlink: 1.0.1 @@ -242,13 +242,13 @@ gulp: 3.9.1 gulp-audit: 1.0.0 gulp-eslint: 3.0.1 gulp-rename: 1.2.2 -gulp-replace: 0.5.4 gulp-util: 3.0.7 +gulp-replace: 0.5.4 gulp-vulcanize: 6.1.0 gulplog: 1.0.0 handle-thing: 1.2.5 -har-validator: 2.0.6 has-ansi: 2.0.0 +har-validator: 2.0.6 has-binary: 0.1.7 has-color: 0.1.7 has-cors: 1.1.0 @@ -260,6 +260,7 @@ hosted-git-info: 2.1.5 hpack.js: 2.1.6 htmlparser2: 3.9.2 http-deceiver: 1.2.7 +http-errors: 1.5.1 http-signature: 0.11.0 https-proxy-agent: 1.0.0 hydrolysis: 1.24.1 @@ -272,48 +273,47 @@ inflight: 1.0.6 inherits: 2.0.3 ini: 1.3.4 inquirer: 0.12.0 -http-errors: 1.5.1 interpret: 1.0.1 ipaddr.js: 1.1.1 +is-absolute: 0.2.6 is-arrayish: 0.2.1 is-buffer: 1.1.4 +is-dotfile: 1.0.2 is-builtin-module: 1.0.0 -is-absolute: 0.2.6 is-equal-shallow: 0.1.3 is-extendable: 0.1.1 -is-dotfile: 1.0.2 is-extglob: 1.0.0 -is-fullwidth-code-point: 1.0.0 is-finite: 1.0.2 +is-fullwidth-code-point: 1.0.0 is-glob: 2.0.1 is-my-json-valid: 2.15.0 is-npm: 1.0.0 +is-number: 2.1.0 is-obj: 1.0.1 is-path-cwd: 1.0.0 -is-path-in-cwd: 1.0.0 is-path-inside: 1.0.0 +is-path-in-cwd: 1.0.0 is-posix-bracket: 0.1.1 is-primitive: 2.0.0 is-property: 1.0.2 -is-number: 2.1.0 is-redirect: 1.0.0 is-relative: 0.2.1 is-resolvable: 1.0.0 +is-retry-allowed: 1.1.0 is-stream: 1.1.0 is-typedarray: 1.0.0 is-unc-path: 0.1.2 is-utf8: 0.2.1 -is-retry-allowed: 1.1.0 is-windows: 0.2.0 isarray: 1.0.0 isexe: 1.1.2 -isobject: 2.1.0 isstream: 0.1.2 +isobject: 2.1.0 istextorbinary: 1.0.2 jade: 0.26.3 jju: 1.3.0 -js-tokens: 2.0.0 jodid25519: 1.0.2 +js-tokens: 2.0.0 js-yaml: 3.7.0 jsbn: 0.1.0 json-parse-helpfulerror: 1.0.3 @@ -322,36 +322,36 @@ json-stable-stringify: 1.0.1 json-stringify-safe: 5.0.1 json3: 3.3.2 jsonify: 0.0.0 -jsprim: 1.3.1 jsonpointer: 4.0.0 +jsprim: 1.3.1 keep-alive-agent: 0.0.1 kind-of: 3.1.0 latest-version: 2.0.0 +launchpad: 0.5.4 lazy-cache: 1.0.4 lazypipe: 1.0.1 levn: 0.3.0 +lazystream: 0.1.0 liftoff: 2.3.0 load-json-file: 1.1.0 -lazystream: 0.1.0 lodash: 1.0.2 lodash._basecopy: 3.0.1 lodash._basetostring: 3.0.1 lodash._basevalues: 3.0.0 lodash._getnative: 3.9.1 -launchpad: 0.5.4 lodash._isiterateecall: 3.0.9 lodash._reescape: 3.0.0 lodash._reevaluate: 3.0.0 -lodash.assignwith: 4.2.0 +lodash._reinterpolate: 3.0.0 lodash._root: 3.0.1 +lodash.assignwith: 4.2.0 lodash.escape: 3.2.0 lodash.isarguments: 3.1.0 lodash.isarray: 3.0.4 lodash.isempty: 4.4.0 lodash.isplainobject: 4.0.6 -lodash._reinterpolate: 3.0.0 -lodash.isstring: 4.0.1 lodash.keys: 3.1.2 +lodash.isstring: 4.0.1 lodash.mapvalues: 4.6.0 lodash.pick: 4.4.0 lodash.restparam: 3.6.1 @@ -359,114 +359,114 @@ lodash.template: 3.6.2 lodash.templatesettings: 3.1.1 lolex: 1.3.2 longest: 1.0.1 +loud-rejection: 1.6.0 lowercase-keys: 1.0.0 lru-cache: 2.7.3 map-cache: 0.2.2 map-obj: 1.0.1 -loud-rejection: 1.6.0 +media-typer: 0.3.0 meow: 3.7.0 merge-descriptors: 1.0.1 -media-typer: 0.3.0 methods: 1.1.2 -micromatch: 2.3.11 mime: 1.3.4 +micromatch: 2.3.11 mime-db: 1.25.0 mime-types: 2.1.13 minimalistic-assert: 1.0.0 minimatch: 3.0.3 minimist: 1.2.0 mkdirp: 0.5.1 +mocha: 2.5.3 moment: 2.17.1 ms: 0.7.2 -mocha: 2.5.3 -multipipe: 0.1.2 multer: 1.2.1 -mv: 2.1.1 +multipipe: 0.1.2 mute-stream: 0.0.5 +mv: 2.1.1 +nan: 2.4.0 natives: 1.1.0 natural-compare: 1.4.0 -nan: 2.4.0 -negotiator: 0.6.1 ncp: 2.0.0 -node-uuid: 1.4.7 -node-status-codes: 1.0.0 +negotiator: 0.6.1 node-int64: 0.3.3 +node-status-codes: 1.0.0 +node-uuid: 1.4.7 nodegit-promise: 4.0.0 nomnom: 1.8.1 nopt: 3.0.6 +normalize-package-data: 2.3.5 normalize-path: 2.0.1 number-is-nan: 1.0.1 oauth-sign: 0.5.0 -normalize-package-data: 2.3.5 object-assign: 4.1.0 object-component: 0.0.3 object.omit: 2.0.1 obuf: 1.1.1 +on-finished: 2.3.0 once: 1.4.0 onetime: 1.1.0 -on-finished: 2.3.0 -options: 0.0.6 optionator: 0.8.2 -ordered-read-streams: 0.1.0 +options: 0.0.6 orchestrator: 0.3.8 +ordered-read-streams: 0.1.0 os-homedir: 1.0.2 -package-json: 2.4.0 +os-tmpdir: 1.0.2 osenv: 0.1.4 +package-json: 2.4.0 parse-filepath: 1.0.1 parse-glob: 3.0.4 parse-json: 2.2.0 -parse5: 1.5.1 parse-passwd: 1.0.0 -os-tmpdir: 1.0.2 +parse5: 1.5.1 parsejson: 0.0.3 parseqs: 0.0.5 -parseurl: 1.3.1 parseuri: 0.0.5 +parseurl: 1.3.1 path-exists: 2.1.0 path-is-absolute: 1.0.1 path-is-inside: 1.0.2 -path-root: 0.1.1 path-posix: 1.0.0 +path-root: 0.1.1 path-root-regex: 0.1.2 path-to-regexp: 0.1.7 path-type: 1.1.0 -pify: 2.3.0 pend: 1.2.0 +pify: 2.3.0 pinkie: 2.0.4 pinkie-promise: 2.0.1 plist: 2.0.1 -pluralize: 1.2.1 plugin-error: 0.1.2 +pluralize: 1.2.1 polyclean: 1.3.1 precond: 0.2.3 prelude-ls: 1.1.2 -pretty-hrtime: 1.0.3 prepend-http: 1.0.4 -process-nextick-args: 1.0.7 preserve: 0.2.0 +pretty-hrtime: 1.0.3 +process-nextick-args: 1.0.7 progress: 1.1.8 -proxy-addr: 1.1.2 promisify-node: 0.4.0 +proxy-addr: 1.1.2 pseudomap: 1.0.2 punycode: 1.4.1 q: 1.4.1 -randomatic: 1.1.6 qs: 6.2.0 +randomatic: 1.1.6 range-parser: 1.2.0 raw-body: 2.1.7 rc: 1.1.6 read-all-stream: 3.1.0 read-installed: 3.1.5 read-package-json: 1.3.3 +readable-stream: 2.2.2 read-pkg: 1.1.0 -read-pkg-up: 1.0.1 readdir-scoped-modules: 1.0.2 -readable-stream: 2.2.2 +rechoir: 0.6.2 readline2: 1.0.1 +read-pkg-up: 1.0.1 redent: 1.0.0 -rechoir: 0.6.2 -regenerator-runtime: 0.10.1 regex-cache: 0.4.3 +regenerator-runtime: 0.10.1 registry-auth-token: 3.1.0 registry-url: 3.1.0 repeat-element: 1.1.2 @@ -474,48 +474,49 @@ repeat-string: 1.6.1 repeating: 2.0.1 replace-ext: 0.0.1 replacestream: 4.0.2 +request: 2.51.0 require-uncached: 1.0.3 resolve: 1.2.0 resolve-dir: 0.1.1 resolve-from: 1.0.1 -restore-cursor: 1.0.1 restify: 4.3.0 +restore-cursor: 1.0.1 right-align: 0.1.3 rimraf: 2.5.4 -run-sequence: 1.2.2 run-async: 0.1.0 -request: 2.51.0 +run-sequence: 1.2.2 rx-lite: 3.1.2 safe-json-stringify: 1.0.3 samsam: 1.1.2 sauce-connect-launcher: 1.1.1 -selenium-standalone: 5.9.0 select-hose: 2.0.0 +selenium-standalone: 5.9.0 semver: 4.3.6 +semver-diff: 2.1.0 send: 0.11.1 sequencify: 0.0.7 -semver-diff: 2.1.0 serve-static: 1.11.1 serve-waterfall: 1.1.1 +server-destroy: 1.0.1 setprototypeof: 1.0.2 shelljs: 0.7.5 sigmund: 1.0.1 -server-destroy: 1.0.1 signal-exit: 3.0.2 +sinon: 1.17.6 sinon-chai: 2.8.0 slice-ansi: 0.0.4 slide: 1.1.6 -sinon: 1.17.6 sntp: 0.2.4 -socket.io-adapter: 0.5.0 socket.io: 1.7.2 +socket.io-adapter: 0.5.0 socket.io-client: 1.7.2 socket.io-parser: 2.3.1 source-map: 0.2.0 sparkles: 1.0.0 spdx-correct: 1.0.2 -spdx-license-ids: 1.2.2 spdx-expression-parse: 1.0.4 +spdx-license-ids: 1.2.2 +spdy: 3.4.4 spdy-transport: 2.0.18 sprintf-js: 1.0.3 sshpk: 1.10.1 @@ -523,34 +524,33 @@ stacky: 1.3.1 statuses: 1.3.1 stream-combiner: 0.2.2 stream-consume: 0.1.0 -spdy: 3.4.4 -streamsearch: 0.1.2 stream-transform: 0.1.1 +streamsearch: 0.1.2 string-width: 1.0.2 string_decoder: 0.10.31 stringstream: 0.0.5 strip-ansi: 3.0.1 strip-bom: 2.0.0 -strip-indent: 1.0.1 strip-json-comments: 1.0.4 +strip-indent: 1.0.1 supports-color: 2.0.0 table: 3.8.3 tar-stream: 1.5.2 temp: 0.8.3 test-fixture: 1.1.1 -text-table: 0.2.0 textextensions: 1.0.2 +text-table: 0.2.0 through: 2.3.8 -through2: 2.0.3 tildify: 1.2.0 +through2: 2.0.3 time-stamp: 1.0.1 timed-out: 3.1.0 to-array: 0.1.4 to-iso-string: 0.0.2 tough-cookie: 2.3.2 trim-newlines: 1.0.0 -tryit: 1.0.3 tunnel-agent: 0.4.3 +tryit: 1.0.3 tweetnacl: 0.14.5 type-check: 0.3.2 type-detect: 1.0.0 @@ -561,29 +561,29 @@ uglify-to-browserify: 1.0.2 ultron: 1.0.2 unc-path-regex: 0.1.2 underscore: 1.6.0 -unique-stream: 1.0.0 underscore.string: 3.0.3 +unique-stream: 1.0.0 unpipe: 1.0.0 unzip-response: 1.0.2 +update-notifier: 0.6.3 urijs: 1.16.1 url-parse-lax: 1.0.0 user-home: 1.1.1 util: 0.10.3 util-deprecate: 1.0.2 util-extend: 1.0.3 +uuid: 2.0.3 utils-merge: 1.0.0 -update-notifier: 0.6.3 v8flags: 2.0.11 +validate-npm-package-license: 3.0.1 vargs: 0.1.0 vary: 1.1.0 vasync: 1.6.3 -verror: 1.9.0 vinyl: 0.5.3 -validate-npm-package-license: 3.0.1 +verror: 1.9.0 vinyl-fs: 0.3.14 -vulcanize: 1.15.1 -uuid: 2.0.3 wbuf: 1.7.2 +vulcanize: 1.15.1 wct-local: 2.0.13 wct-sauce: 1.8.6 wd: 0.3.12 @@ -592,10 +592,10 @@ which: 1.2.12 widest-line: 1.0.0 window-size: 0.1.0 wordwrap: 1.0.0 -wrappy: 1.0.2 write: 0.2.1 -ws: 1.1.1 +wrappy: 1.0.2 write-file-atomic: 1.2.0 +ws: 1.1.1 wtf-8: 1.0.0 xdg-basedir: 2.0.0 xmlbuilder: 8.2.2 @@ -607,23 +607,23 @@ yargs: 3.10.0 yauzl: 2.7.0 yeast: 0.1.2 zip-stream: 0.5.2 -@types/chalk: 0.4.31 @types/clone: 0.1.30 @types/express: 4.0.34 -@types/mime: 0.0.29 +@types/chalk: 0.4.31 @types/express-serve-static-core: 4.0.39 @types/freeport: 1.0.20 +@types/mime: 0.0.29 @types/node: 4.0.30 @types/parse5: 0.0.31 -@types/which: 1.0.28 @types/serve-static: 1.7.31 +@types/which: 1.0.28 REPO REVISIONS ============== -polymer-1.x: ef0174703a1cf850ca4e6f205a8cec108687e85e +polymer-1.x: 891ac04297e6f5c243f5797e927b4da7e80cf30b BUILD HASHES ============ polymer-mini.html: 37df26412c1452ef3f58a0e4a8720eeab15fd4b2 -polymer-micro.html: 775957d2c4f66b26fe057854ef1d364897906dfc -polymer.html: 4fd2941c2a1a94aa59325a88de5067c3600fd21d \ No newline at end of file +polymer-micro.html: a5cd83cb040eca7ced9755b9e5b748c8c42ab390 +polymer.html: d2d828dbfa381991f1f3d49f4ac4315c0c8328f6 \ No newline at end of file diff --git a/polymer-micro.html b/polymer-micro.html index 263b5aa654..ef46f81b38 100644 --- a/polymer-micro.html +++ b/polymer-micro.html @@ -207,6 +207,7 @@ if (settings.disableUpgradeEnabled) { if (this.hasAttribute('disable-upgrade')) { this._propertySetter = disableUpgradePropertySetter; +this._configValue = null; this.__data__ = {}; return; } else { @@ -386,6 +387,7 @@ if (!this.__hasInitialized && name === 'disable-upgrade') { this.__hasInitialized = true; this._propertySetter = Polymer.Bind._modelApi._propertySetter; +this._configValue = Polymer.Base._configValue; this.__initialize(); } origAttributeChangedCallback.call(this, name, oldValue, newValue); @@ -788,7 +790,7 @@ return value != null ? value : undefined; } } -});Polymer.version = "1.8.0";Polymer.Base._addFeature({ +});Polymer.version = "1.8.1";Polymer.Base._addFeature({ _registerFeatures: function () { this._prepIs(); this._prepBehaviors(); diff --git a/polymer.html b/polymer.html index e8cfcc42ce..61f81beb84 100644 --- a/polymer.html +++ b/polymer.html @@ -2009,6 +2009,7 @@ } });(function () { var usePolyfillProto = Polymer.Settings.usePolyfillProto; +var avoidInstanceProperties = Boolean(Object.getOwnPropertyDescriptor(document.documentElement, 'properties')); Polymer.Base._addFeature({ _setupConfigure: function (initialConfig) { this._config = {}; @@ -2046,7 +2047,7 @@ for (var i = 0; i < this.behaviors.length; i++) { this._configureProperties(this.behaviors[i].properties, config); } -this._configureProperties(this.properties, config); +this._configureProperties(avoidInstanceProperties ? this.__proto__.properties : this.properties, config); this.mixin(config, this._aboveConfig); this._config = config; if (this._clients && this._clients.length) { @@ -2743,6 +2744,37 @@ } return cssText; }, +styleIncludesToTemplate: function (targetTemplate) { +var styles = targetTemplate.content.querySelectorAll('style[include]'); +for (var i = 0, s; i < styles.length; i++) { +s = styles[i]; +s.parentNode.insertBefore(this._includesToFragment(s.getAttribute('include')), s); +} +}, +_includesToFragment: function (styleIncludes) { +var includeArray = styleIncludes.trim().split(' '); +var frag = document.createDocumentFragment(); +for (var i = 0; i < includeArray.length; i++) { +var t = Polymer.DomModule.import(includeArray[i], 'template'); +if (t) { +this._addStylesToFragment(frag, t.content); +} +} +return frag; +}, +_addStylesToFragment: function (frag, source) { +var s$ = source.querySelectorAll('style'); +for (var i = 0, s; i < s$.length; i++) { +s = s$[i]; +var include = s.getAttribute('include'); +if (include) { +frag.appendChild(this._includesToFragment(include)); +} +if (s.textContent) { +frag.appendChild(s.cloneNode(true)); +} +} +}, isTargetedBuild: function (buildType) { return settings.useNativeShadow ? buildType === 'shadow' : buildType === 'shady'; }, @@ -3327,6 +3359,9 @@ if (this._template) { var hasTargetedCssBuild = styleUtil.isTargetedBuild(this.__cssBuild); if (settings.useNativeCSSProperties && this.__cssBuild === 'shadow' && hasTargetedCssBuild) { +if (settings.preserveStyleIncludes) { +styleUtil.styleIncludesToTemplate(this._template); +} return; } this._styles = this._styles || this._collectStyles();