GithubHelp home page GithubHelp logo

nikishin / dueljs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from studentivan/dueljs

0.0 1.0 0.0 16.66 MB

JavaScript HTML5 Master/Slave Browser Tabs Helper

Home Page: http://dueljs.studentivan.ru/

License: MIT License

HTML 12.93% JavaScript 87.07%

dueljs's Introduction

DuelJS v1.2.5

Documentation Status GitHub license Bower GitHub stars

JavaScript HTML5 Master/Slave Browser Tabs Helper.

See a brief look on the homepage

Documentation available on http://dueljs.readthedocs.org/

######New in 1.2.5:

  • Different variables for each channel (setItem, getItem, removeItem)

######New in 1.2.4:

  • New storage methods setItem, getItem, removeItem with JSONify inside
  • Direct localStorage changed to window.localStorage
  • Fixed emit bug (arguments)
  • New configuration duel.noWarnings
/** Turn off errors for debug */
duel.noWarnings = false;
/** New storage methods example */
var ch = duel.channel('demo');
ch.setItem('x', 10);
ch.setItem('y', {'a': true});
ch.getItem('x'); // 10
ch.getItem('y'); // Object {'a': true}

######New in 1.2.3:

  • UMD compatible (thanks to RasCarlito [email protected])
  • Microsoft Edge attested (thanks to toby11)

######New in 1.2.2:

  • Fixed some additional bugs (extra-release)

######New in 1.2.1:

######New in 1.2.0:

  • New method: channel.off - stop watching event
  • New method: channel.once - executing callback only one time and stop watching event
  • New method: channel.emit - the alias of channel.broadcast
  • Function window.isMaster() now returns true even if no one channel has initialized #3
  • Dev test coverage (Mocha + PhantomJS)

######New in 1.1.0:

  • "storage" event improves performance in modern browsers. To turn it off and use old method - do:
duel.useStorageEvent = false; // auto false in IE
  • Now only slaves can execute triggers
  • Some unimportant bug fixes

######List of attested browsers:

  1. Opera 29.0.1795.35 (with storage event)
  2. Chrome 41.0.2272.118 (with storage event)
  3. Firefox 34.0 (with storage event)
  4. Internet Explorer 11 (without storage event)
  5. Safari 534.57.2 (with storage event)
  6. Android 4.3 LT29i default browser (with storage event)
  7. Microsoft Edge 25.10586.0.0 (with storage event)

Internet Explorer does incorrect. So it using force useStorageEvent = false by default.

######How it works with Internet Explorer without storage event? Don't worry. It using setInterval javascript checking.

dueljs's People

Contributors

lisathesecond avatar studentivan avatar

Watchers

 avatar

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.