This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| "env": { | |
| "browser": true, | |
| "commonjs": true, | |
| "es6": true, | |
| "node": true | |
| }, | |
| "extends": "eslint:recommended", | |
| "parserOptions": { | |
| "ecmaFeatures": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| p { | |
| font-family: consolas, Arial, Helvetica, sans-serif; | |
| font-size: 12px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Checker dla strategy pattern. | |
| * Gdy mamy maciezystaFn(aparm, fn, fnArgs) | |
| * Sprawdza czy istnieje takie fn i zapisuje argumenty | |
| * Pierszy Param nieistotny. Zmienić gdy niepotrzebny | |
| */ | |
| this.fnParams = [].slice.call(arguments, 2); | |
| this.fnName = [].slice.call(arguments, 1, 2); | |
| this.checkedFn = typeof XXX[this.fnName] === 'function' ? true : logger.log('error', `this function: '${this.fnName}' not found in XXX`); | |
| this.fn = this.checkedFn && XXX[this.fnName]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| Obj = Obj || { | |
| init: function init() { | |
| this.id = V3.utils.generateID(this.countNo); | |
| this.countNo = 0; | |
| this.components = {}; | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| /* | |
| ========================================================================== | |
| XXX | |
| ========================================================================== | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "directory" : "lib" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (let key in obj) { | |
| if (obj.hasOwnProperty(key)){ | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var bigO = { | |
| methods: { | |
| init: function(args){ | |
| return 'init...' + args; | |
| }, | |
| }, | |
| greet: function(options){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| var obj = obj || { | |
| entity: { | |
| setParameters: function setParameters(aobj) { | |
| this.entiType = 'entity'; | |
| this.x = aobj.x || 1; | |
| } | |
| }, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| createX: function createX(options) { | |
| var thisObj = Object.create(this); | |
| thisObj.init(options); | |
| return thisObj; | |
| } |