Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generate-js-bindings

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generate-js-bindings

A data binding layer for Generate JS.

  • 1.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-42.86%
Maintainers
1
Weekly downloads
 
Created
Source

Table of Contents

Bindable

A generator for Bindable, lets you create an objects that you can bind functions to property changes, or generate a new generator that inherits from Bindable.

Install:

$ npm install generate-js-bindings

Bindable.create()

  • return: Object A new object that inherits from Bindable.

Creates a new object that inherits from Bindable.

Bindable.generate(create)

  • create Function Create method that gets called when creating a new object that inherits from Bindable.
  • return: Generator A new generator that inherits from Bindable.

Returns a new generator that inherits from Bindable.

Class: Generation

A new generator that inherits from the generator that generated it using the Bindable.generate(create) method.

Class: Creation

A new object that inherits from the generator that created it using the Bindable.create() method.

Creation.bind(property, listener[, observer])

  • property String Name of property.
  • listener Function Property change handler function.
  • observer Object Object reference for binding.
  • return: Object This object.

Adds a 'listener' on 'property' change to this Bindable instance.

Creation.bindOnce(property, listener[, observer])

  • property String Name of property.

  • listener Function Property change handler function.

  • observer Object Object reference for binding.

  • return: Object This object.

Adds a 'listener' on 'property' change to this Bindable instance which is removed after one 'property' change.

Creation.unbind([property][, listener][, observer])

  • property String Name of property.
  • listener Function Property change handler function.
  • observer Object Object reference for binding.
  • return: Object This object.

Removes a 'listener' on 'property', or all listeners on 'property', or all listeners from this Bindable instance.

Creation.change(property, oldValue, newValue, changer)

  • property String Name of property.
  • oldValue Any Old value of property.
  • newValue Any New value of property.
  • return: Object This object.

Emits an 'property' with 'args' on this Bindable instance.

Keywords

FAQs

Package last updated on 15 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc