Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-20 Thread Aaron Craelius
You're welcome! I'll be curious to know how/if this works out for you. Good luck! On Sat, Dec 20, 2014 at 4:29 PM, Timothy Washington wrote: > Niiice, that does the trick. > > A double-import. I've been looking at the code too long. Thank-you brother > ! > > > Tim Washington > Interruptsoftwar

Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-20 Thread Timothy Washington
Niiice, that does the trick. A double-import. I've been looking at the code too long. Thank-you brother ! Tim Washington Interruptsoftware.com On Sat, Dec 20, 2014 at 1:42 PM, Aaron Craelius wrote: > If I remove the [:script ...] line after [:core-header-panel

Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-20 Thread Aaron Craelius
If I remove the [:script ...] line after [:core-header-panel ...] in view it seems to appear the same in all browsers and I don't see errors in the console. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are

Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-20 Thread Timothy Washington
Here's maybe a bit more insight into why evaluating Polymer(...) gives "TypeError: Polymer is not a function". This is confusing, because *i)* the Polymer() function / object is definitely available in all browser js consoles. *ii)* And even calling Polymer() in Chrome fails. But if I first import

Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-19 Thread Timothy Washington
Ah, shoot. Ok, so I've released bkell 0.1.0 to clojars (SNAPSHOT got trampled) (see here and here ). So just change that. As far as javascript creating Polymer elements, theoretically, there shouldn't be a prob

Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-18 Thread Ruslan Prokopchuk
No, I have no Mac near me to test. But I had problems in Firefox with clojurescript: haven't figured why, it loaded messed up content by assets links (e.g. normalize.css instead of webcomponents.js, different compiled files in wrong order etc.). I have deleted Firefox profile folder and started

Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-18 Thread Ruslan Prokopchuk
Works in my Firefox 34.0 on Linux. Does page produce any errors in Console? -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this

Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-18 Thread Aaron Craelius
On Thursday, December 18, 2014 8:36:39 AM UTC-5, Ruslan Prokopchuk wrote: > четверг, 18 декабря 2014 г., 16:33:34 UTC+3 пользователь Ruslan Prokopchuk > написал: > > No, correct way (accordingly to Aaron's link) is to write {:flex "flex"} or > > {:flex :flex}, not {:flex true}. But setting any va

Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-18 Thread Ruslan Prokopchuk
Did you include webcomponents.js polyfill? I use smth like [:script {:src "bower_components/webcomponentsjs/webcomponents.js"}] (for [s ["core-elements" "paper-elements" "fontawesome-iconset-svg"]] [:link {:rel "import" :href (str "bower_components/" s "/" s ".html")}]) -- Note that posts fro

Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-18 Thread Ruslan Prokopchuk
четверг, 18 декабря 2014 г., 16:33:34 UTC+3 пользователь Ruslan Prokopchuk написал: > No, correct way (accordingly to Aaron's link) is to write {:flex "flex"} or > {:flex :flex}, not {:flex true}. But setting any value to boolean attribute > will work in real world, so 1 is short to type, and I

Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-18 Thread Ruslan Prokopchuk
No, correct way (accordingly to Aaron's link) is to write {:flex "flex"} or {:flex :flex}, not {:flex true}. But setting any value to boolean attribute will work in real world, so 1 is short to type, and I prefer it over valid markup ;-) -- Note that posts from new members are moderated - plea

Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-17 Thread Aaron Craelius
See this about boolean attributes: http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#boolean-attributes It would seem that the most correct thing would be {:flex true} Since setAttribute takes a string value (http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-F68F082) and freacti

Re: [ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-17 Thread Timothy Washington
Hmm, For me A) just produces B). I'm using *[freactive "0.1.0"]*. I'm guessing attribute properties are bound here , which uses this setter function

[ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-17 Thread Ruslan Prokopchuk
I use Polymer with Freactive, and represent as [:core-header-panel {:flex 1}] This is not beautiful, but works. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureSc

[ClojureScript] Re: Using Polymer With Om or Freactive

2014-12-16 Thread Timothy Washington
Ok, I figured out that these ** tags are HTML5 boolean attributes (see here and do a "*boolean*" text search here ). I don't see an actual definition