mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
use strict; fixes #83
This commit is contained in:
parent
b886728bf5
commit
2b186be8af
78 changed files with 163 additions and 5 deletions
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (http, nodeStatic, Api, fs) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function HttpServer (options, coordinator) {
|
||||
options.port = options.port || 1234;
|
||||
options.caching = typeof options.caching != 'undefined' ? options.caching : 3600;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (io) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Socket (server, options, coordinator) {
|
||||
options.logLevel = typeof options.logLevel != 'undefined'
|
||||
? options.logLevel
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Parent) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Detector () {
|
||||
Parent.call(this);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ define([
|
|||
|
||||
function (Parent, PhysicsEngine, Settings, PlayerController, requestAnimFrame, Nc, Box2D, Player, GameObject, Doll, RagDoll) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function GameController (options) {
|
||||
|
||||
this.animationTimeout = null;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (Parent, Item, Box2D, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Doll(physicsEngine, uid, player) {
|
||||
Parent.call(this, physicsEngine, uid, player);
|
||||
}
|
||||
|
|
@ -15,10 +17,12 @@ function (Parent, Item, Box2D, Nc) {
|
|||
|
||||
Doll.prototype.findCloseItem = function(x, y) {
|
||||
|
||||
var self = this;
|
||||
|
||||
function findItem(array) {
|
||||
for (var i = 0; i < array.length; i++) {
|
||||
var item = array[i];
|
||||
if(item.isGrabbingAllowed(this.player)) {
|
||||
if(item.isGrabbingAllowed(self.player)) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Parent) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Item(physicsEngine, uid, options) {
|
||||
Parent.call(this, physicsEngine, uid, options);
|
||||
this.heldByPlayers = [];
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ define([
|
|||
|
||||
function (Parent, Settings, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function RagDoll(physicsEngine, uid, options) {
|
||||
this.scheduledForDestruction = false;
|
||||
this.destructionTimeout = null;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Parent) {
|
||||
|
||||
"use strict";
|
||||
|
||||
return Parent;
|
||||
|
||||
});
|
||||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Parent) {
|
||||
|
||||
"use strict";
|
||||
|
||||
return Parent;
|
||||
|
||||
});
|
||||
|
|
@ -6,6 +6,8 @@ define([
|
|||
|
||||
function (Parent, Settings, FileSystem) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Level (uid, engine, gameObjects) {
|
||||
Parent.call(this, uid, engine, gameObjects);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Parent) {
|
||||
|
||||
"use strict";
|
||||
|
||||
return Parent;
|
||||
|
||||
});
|
||||
|
|
@ -5,6 +5,8 @@ define([
|
|||
|
||||
function (Nc, Channel) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function PipeToServer (process) {
|
||||
|
||||
var self = this;
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ define([
|
|||
|
||||
function (Parent, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Player(id, physicsEngine, user) {
|
||||
Parent.call(this, id, physicsEngine, user);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ define([
|
|||
|
||||
function () {
|
||||
|
||||
"use strict";
|
||||
|
||||
function AudioPlayer(path) {
|
||||
this.audio = new Audio(path);
|
||||
this.audio.loop = true;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Parent) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Detector () {
|
||||
Parent.call(this);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ define([
|
|||
|
||||
function (Parent, Settings, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function GamepadInput(playerController) {
|
||||
this.playerController = playerController;
|
||||
Parent.call(this);
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (Parent, DomController, Settings, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function MouseInput() {
|
||||
Parent.call(this);
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function XyInput() {
|
||||
this.x = null;
|
||||
this.y = null
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Key) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function KeyboardInput (playerController) {
|
||||
|
||||
this._registry = {};
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ define([
|
|||
|
||||
function (Parent, KeyboardInput, MouseInput, Nc, GamepadInput) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function PlayerController (me) {
|
||||
|
||||
Parent.call(this, me);
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ define([
|
|||
|
||||
function (Parent, Box2D, PhysicsEngine, ViewManager, PlayerController, Nc, requestAnimFrame, Settings, GameObject, Doll, DomController, ProtocolHelper, Me, AudioPlayer) {
|
||||
|
||||
"use strict";
|
||||
|
||||
if (!window.cancelAnimationFrame) {
|
||||
window.cancelAnimationFrame = function(id) {
|
||||
clearTimeout(id);
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ define([
|
|||
|
||||
function (Parent, Settings, Nc, Exception, ColorConverter, Layer) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Doll(physicsEngine, uid, player) {
|
||||
this.layerId = Layer.ID.SPAWN;
|
||||
this.animationDef = {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ define([
|
|||
|
||||
function (Parent, Exception, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function GameObject(physicsEngine, uid) {
|
||||
Parent.call(this, physicsEngine, uid);
|
||||
this.createMesh();
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (Parent, Settings, Nc, Layer) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Item(physicsEngine, uid, options) {
|
||||
this.layerId = Layer.ID.ITEM;
|
||||
Parent.call(this, physicsEngine, uid, options);
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ define([
|
|||
|
||||
function (Parent, CoreItem, Settings, Nc, Layer) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function RagDoll(physicsEngine, uid, options) {
|
||||
this.layerId = Layer.ID.SPAWN;
|
||||
this.limbMeshes = {};
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Parent) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Rube(physicsEngine, uid, options) {
|
||||
Parent.call(this, physicsEngine, uid, options);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Parent) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function SpectatorDoll(physicsEngine, uid) {
|
||||
Parent.call(this, physicsEngine, uid);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (Parent, Settings, Nc, Layer) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Tile(physicsEngine, uid, options) {
|
||||
this.layerId = Layer.ID.TILE;
|
||||
Parent.call(this, physicsEngine, uid, options);
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ define([
|
|||
|
||||
function (Parent, Settings, Nc, PIXI, AbstractLayer) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Level (uid, engine, gameObjects) {
|
||||
Parent.call(this, uid, engine, gameObjects);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ define([
|
|||
|
||||
function (Parent, Settings, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function TiledLevel(uid, engine, gameObjects) {
|
||||
this.layerId = "background";
|
||||
Parent.call(this, uid, engine, gameObjects);
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ define([
|
|||
|
||||
function (Parent, Settings, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Me(id, physicsEngine, user) {
|
||||
Parent.call(this, id, physicsEngine, user);
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ define([
|
|||
|
||||
function (ProtocolHelper, GameController, User, Nc, Settings, DomController) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Networker (socketLink, channelName, nickname) {
|
||||
this.channelName = channelName;
|
||||
this.nickname = nickname;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ define([
|
|||
|
||||
function (Parent, Settings, DomController, Box2D, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Engine () {
|
||||
Parent.call(this);
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ define([
|
|||
|
||||
function (Parent, Nc, Settings) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Player(id, physicsEngine, user) {
|
||||
Parent.call(this, id, physicsEngine, user);
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Abstract) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Layer(name, parallaxSpeed) {
|
||||
this.name = name;
|
||||
this.parallaxSpeed = parallaxSpeed;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ define([
|
|||
|
||||
function (Abstract, DomController, Settings, Exception, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function AbstractView () {
|
||||
this.me = null;
|
||||
this.canvas = null;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (Settings, Nc, Stats, Screenfull) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function DomController() {
|
||||
this.canvas = document.getElementById("canvas");
|
||||
this.debugCanvas = null;
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ define([
|
|||
|
||||
function (Nc, Exception, Layer) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function LayerManager(container, me) {
|
||||
this.layers = [];
|
||||
this.container = container;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (Settings, Nc, Stats, Screenfull) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Mesh() {
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (PIXI) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var Parent = PIXI.AbstractFilter;
|
||||
|
||||
function ColorRangeReplaceFilter() {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (PIXI, Nc, Settings, ColorConverter) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function GameStats(container) {
|
||||
|
||||
this.style = {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (Parent, PIXI, ColorRangeReplaceFilter, Settings) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var AVAILABLE_MESH_FILTERS = {
|
||||
"blur": PIXI.BlurFilter,
|
||||
"desaturate": PIXI.GrayFilter,
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (Parent, PIXI, Nc, Settings) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Ghost() {
|
||||
Parent.call(this, "ghost", 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@ define([
|
|||
|
||||
function (Parent, DomController, PIXI, Settings, Nc, Exception, GameStats, LayerManager, Ghost) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function PixiView () {
|
||||
|
||||
Parent.call(this);
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (Parent, DomController, Three, Settings) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function ThreeView () {
|
||||
Parent.call(this);
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ define([
|
|||
|
||||
function (Settings, Exception, AbstractView, PixiView, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var ViewManager = {};
|
||||
|
||||
ViewManager.createView = function() {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Box2D) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Detector () {
|
||||
this.listener = new Box2D.Dynamics.b2ContactListener();
|
||||
this.listener.BeginContact = this.beginContact.bind(this);
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ define([
|
|||
|
||||
function (PhysicsEngine, TiledLevel, Player, Nc, Doll) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function GameController (options) {
|
||||
|
||||
this.options = options;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ define([
|
|||
|
||||
function (Parent, Box2D, Settings, CollisionDetector, Item, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Doll (physicsEngine, uid, player) {
|
||||
|
||||
this.characterName = "Chuck";
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ define([
|
|||
|
||||
function (Box2D, Exception) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function GameObject(physicsEngine, uid) {
|
||||
this.uid = uid;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ define([
|
|||
|
||||
function (Parent, Box2D, Options, Settings, Exception, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Item(physicsEngine, uid, options) {
|
||||
|
||||
var floatOptions = {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (Parent, Box2D, Settings, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function RagDoll(physicsEngine, uid, options) {
|
||||
|
||||
// Sensor size
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ define([
|
|||
|
||||
function (Parent, Box2D, Settings) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function RagDoll(physicsEngine, uid, options) {
|
||||
Parent.call(this, physicsEngine, uid, options);
|
||||
this.body.GetWorld().DestroyBody(this.body);
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (Parent, RubeLoader, Box2D, Settings ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// Fixme - make this loadable
|
||||
var __ragdollJson;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ define([
|
|||
|
||||
function (Parent, Box2D, Settings) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Skateboard(physicsEngine, uid, options) {
|
||||
|
||||
Parent.call(this, physicsEngine, uid, options);
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ define([
|
|||
|
||||
function (Parent, Box2D) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function SpectatorDoll(physicsEngine, uid, player) {
|
||||
Parent.call(this, physicsEngine, uid);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ define([
|
|||
|
||||
function (Parent, Box2D, Settings, Exception, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Tile(physicsEngine, uid, options) {
|
||||
this.options = options;
|
||||
Parent.call(this, physicsEngine, uid);
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ define([
|
|||
|
||||
function (Settings, Box2D, CollisionDetector, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Engine () {
|
||||
this.world = new Box2D.Dynamics.b2World(
|
||||
new Box2D.Common.Math.b2Vec2(0, Settings.BOX2D_GRAVITY),
|
||||
|
|
|
|||
|
|
@ -7,9 +7,10 @@ define([
|
|||
"Game/" + GLOBALS.context + "/GameObjects/Items/RagDoll"
|
||||
],
|
||||
|
||||
|
||||
function (Doll, Settings, Nc, Exception, SpectatorDoll, RagDoll) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Player (id, physicsEngine, user) {
|
||||
this.stats = {
|
||||
health: 100,
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Exception) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Abstract() {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (CryptoJS) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function ColorConverter() {
|
||||
this.sin = 0;
|
||||
var palette = [
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Exception) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function populate(obj, path) {
|
||||
path = path || "Nc.ns";
|
||||
for(var key in obj) {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Exception) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Options() {
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ define([
|
|||
|
||||
function (Parser, Exception) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var Helper = {}
|
||||
|
||||
Helper.encodeCommand = function (command, options) {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ define([
|
|||
|
||||
function () {
|
||||
|
||||
"use strict";
|
||||
|
||||
var Parser = {};
|
||||
|
||||
Parser.encode = function (message) {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ define([
|
|||
|
||||
function (Settings) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var requestAnimFrame = (function () {
|
||||
|
||||
var _setTimeout = function ( callback ) {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ define([
|
|||
|
||||
function () {
|
||||
|
||||
"use strict";
|
||||
|
||||
function validate(object, description) {
|
||||
|
||||
if(description.optional && (object === null || object === "")) {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ define([
|
|||
|
||||
function (ColorConverter, Exception) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var instance = null
|
||||
|
||||
function Menu() {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ define([
|
|||
|
||||
function (Nc, ProtocolHelper, validate, Options, Settings, FileSystem) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Api(coordinator) {
|
||||
this.coordinator = coordinator;
|
||||
this.isError = false;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ define([
|
|||
|
||||
function (User, Channel, PipeToChannel, Nc, Settings) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Coordinator() {
|
||||
this.channelPipes = {};
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ define([
|
|||
|
||||
function (Nc, childProcess) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var fork = childProcess.fork;
|
||||
|
||||
function PipeToChannel (options) {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ define([
|
|||
|
||||
function (Parent, ProtocolHelper, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function User (socketLink, coordinator) {
|
||||
Parent.call(this, socketLink.id, {});
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
GLOBALS = { context: "Channel" };
|
||||
"use strict";
|
||||
|
||||
var GLOBALS = { context: "Channel" };
|
||||
var requirejs = require('requirejs');
|
||||
|
||||
requirejs.config({
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
GLOBALS = { context: "Client" };
|
||||
"use strict";
|
||||
|
||||
var GLOBALS = { context: "Client" };
|
||||
|
||||
requirejs.config({
|
||||
baseUrl: 'app',
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
GLOBALS = { context: "Channel" };
|
||||
"use strict";
|
||||
|
||||
var GLOBALS = { context: "Channel" };
|
||||
var requirejs = require('requirejs');
|
||||
|
||||
var inspector;
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ define([
|
|||
|
||||
function (Parent) {
|
||||
|
||||
"use strict";
|
||||
|
||||
return Parent;
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ define([
|
|||
|
||||
function (Parent) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function ${1:Module}() {
|
||||
Parent.call(this);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@ define([
|
|||
|
||||
function () {
|
||||
|
||||
"use strict";
|
||||
|
||||
function ${1:Module}() {
|
||||
|
||||
}
|
||||
|
||||
${1:Module}.prototype.${2:name} = function(${3:arguments}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue