(#) background: "linear-gradient(to bottom, rgba(230, 230, 230, 1) 0, rgba(140, 140, 140, 1) 30%, rgba(0, 0, 0, 1) 95%)"
(#) autonext: 7000
var method = require("enjoy-js").method; | |
var dispatch = require("enjoy-js").dispatch; | |
var specialize = require("enjoy-js").specialize; | |
var concat = method(); | |
dispatch(concat, type_of, type_of); | |
specialize(concat, "string", "string", function (a, b) { | |
return a + b; |
var method = require("enjoy-js").method; | |
var specialize = require("enjoy-js").specialize; | |
var is_object = require("enjoy-js").is_object; | |
var is_string = require("enjoy-js").is_string; | |
// Defining a multimethod with a default implementation: | |
var hello = method(function () { | |
return "Hello!"; | |
}); |
/* global window */ | |
function StageResizer (stageElement, options) { | |
options = options || {}; | |
this._element = stageElement; | |
this._stageWidth = options.stageWidth || stageElement.offsetWidth || 1; | |
this._stageHeight = options.stageWidth || stageElement.offsetWidth || 1; | |
this._snapToEdge = options.snapToEdge || true; |