Giter Site home page Giter Site logo

shoreleave-browser's People

Contributors

ohpauleez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

shoreleave-browser's Issues

Can't set cookie

Was trying to use cookies

(assoc! cookies :a "b")

got back the following

"Error evaluating:" (assoc! cookies :a "b") :as "cljs.core.assoc_BANG_.call(null,shoreleave.browser.cookies.cookies,\"\\uFDD0:a\",\"b\")"
#<Error: No protocol method ITransientAssociative.-assoc! defined for type object: [object Object]>
@http://localhost:7000/js/test.js:3931
_assoc_BANG_@http://localhost:7000/js/test.js:3934
assoc_BANG_@http://localhost:7000/js/test.js:9699


eval code
eval@[native code]
@http://localhost:7000/js/test.js:29700
evaluate_javascript@http://localhost:7000/js/test.js:29713
@http://localhost:7000/js/test.js:29778
deliver@http://localhost:7000/js/test.js:27771
deliver_@http://localhost:7000/js/test.js:29133
messageReceived_@http://localhost:7000/js/test.js:28554
handleEvent@http://localhost:7000/js/test.js:22470
fireListener@http://localhost:7000/js/test.js:22808
handleBrowserEvent_@http://localhost:7000/js/test.js:22923
@http://localhost:7000/js/test.js:22556
[native code]
nil

I have no idea what could be wrong ...

I'm using the following versions

  :dependencies [[org.clojure/clojure "1.5.1"]
                 [shoreleave/shoreleave-browser "0.3.0"]]
  :plugins [[lein-cljsbuild "0.3.2"]]

Issue with code providing of "goog.storage.mechanism.HTML5LocalStorage"

In the latest and greatest you have turned-on the local storage support again, which is great,
but I get those:


ERROR - required "goog.storage.mechanism.HTML5LocalStorage" namespace never provided
goog.require('goog.storage.mechanism.HTML5LocalStorage')


When I peek in the generated main-debug.js, then there is no code included/provided for goog.storage.mechanism.HTML5LocalStorage.

Believe this issue has been mentioned before.

Kind of puzzling... as your code seems pretty innocent (?)

-FrankS.

Please either provide a working Google Closure jar or wrap localStorage

I can't use any shoreleave project that uses browser (eg, remote) until localStorage is properly wrapped OR you can provide your super secret home-made google closure jar :-)

I know you fixed it in pubsub, but now that i'm trying to use remote (which pulls in browser), I'm back where I started.

Help!

Warnings during cljs compilation with [org.clojure/clojurescript "0.0-2913"]

WARNING: Bad method signature in protocol implementation, ITransientAssociative -assoc! does not declare arity 5 at line 27 file:/Users/martinb/.m2/repository/shoreleave/shoreleave-browser/0.3.0/shoreleave-browser-0.3.0.jar!/shoreleave/browser/cookies.cljs
WARNING: Bad method signature in protocol implementation, ITransientMap -dissoc! does not declare arity 4 at line 27 file:/Users/martinb/.m2/repository/shoreleave/shoreleave-browser/0.3.0/shoreleave-browser-0.3.0.jar!/shoreleave/browser/cookies.cljs
WARNING: Bad method signature in protocol implementation, ITransientAssociative -assoc! does not declare arity 5 at line 27 resources/public/js/out/shoreleave/browser/cookies.cljs
WARNING: Bad method signature in protocol implementation, ITransientMap -dissoc! does not declare arity 4 at line 27 resources/public/js/out/shoreleave/browser/cookies.cljs

0.2.2 in Safari chokes on window.BlobBuilder.prototype

In Safari and Opera (but not in Chrome or Firefox), i get this error:

window.BlobBuilder = shoreleave.browser.blob.blobber.call(null);
shoreleave.browser.blob.blob_builder = function blob_builder() {
  return new window.BlobBuilder
};
// here:
window.BlobBuilder.prototype.cljs$core$ITransientCollection$ = true;

The exception I get is: 'undefined' is not an object (evaluating 'window.BlobBuilder.prototype').

I am not using blobs in my code, so this is a whitespace-compilation-only issue. It means that I can not debug in Safari or Opera.

Please fix this :-)

For context, here are the cljs portions of my deps tree (using leiningen 2 preview10):

$ lein deps :tree
 [enfocus "1.0.0-alpha3"]
   [domina "1.0.0" :exclusions [[org.clojure/clojurescript]]]
     [goog-jar "1.0.0"]
 [shoreleave/shoreleave-pubsub "0.2.2"]
   [shoreleave/shoreleave-browser "0.2.2"]
   [shoreleave/shoreleave-core "0.2.2"]
   [shoreleave/shoreleave-worker "0.2.2"]
 [shoreleave/shoreleave-remote "0.2.2"]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.